Embedded TCP/IP stack  4.7.0
fnet_telnet_config.h
1 /**************************************************************************
2 *
3 * Copyright 2008-2018 by Andrey Butok. FNET Community.
4 *
5 ***************************************************************************
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
8 * not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 ***************************************************************************
20 *
21 * FNET Telnet Server configuration file.
22 *
23 ***************************************************************************/
24 
25 /**************************************************************************
26  * !!!DO NOT MODIFY THIS FILE!!!
27  **************************************************************************/
28 
29 #ifndef _FNET_TELNET_CONFIG_H_
30 
31 #define _FNET_TELNET_CONFIG_H_
32 
36 /**************************************************************************/
43 #ifndef FNET_CFG_TELNET
44  #define FNET_CFG_TELNET (0)
45 #endif
46 
47 /**************************************************************************/
54 #ifndef FNET_CFG_TELNET_SESSION_MAX
55  #define FNET_CFG_TELNET_SESSION_MAX (1u)
56 #endif
57 
58 /**************************************************************************/
66 #ifndef FNET_CFG_TELNET_PORT
67  #define FNET_CFG_TELNET_PORT (FNET_HTONS(23u))
68 #endif
69 
70 /**************************************************************************/
77 #ifndef FNET_CFG_TELNET_SHELL_ECHO
78  #define FNET_CFG_TELNET_SHELL_ECHO (0)
79 #endif
80 
81 /**************************************************************************/
87 #ifndef FNET_CFG_TELNET_SOCKET_BUF_SIZE
88  #define FNET_CFG_TELNET_SOCKET_BUF_SIZE (60u)
89 #endif
90 
91 /**************************************************************************/
98 #ifndef FNET_CFG_TELNET_CMD_LINE_BUF_SIZE
99  #define FNET_CFG_TELNET_CMD_LINE_BUF_SIZE (60u)
100 #endif
101 
104 #ifdef FNET_CFG_TELNET_MAX
105  #error "FNET_CFG_TELNET_MAX parameter is obsolete. Use FNET_CFG_TELNET."
106 #endif
107 
108 #endif /* _FNET_TELNET_CONFIG_H_ */

© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net