Embedded TCP/IP stack  4.7.0
fnet_telnet.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 API.
22 *
23 ***************************************************************************/
24 
25 #ifndef _FNET_TELNET_H_
26 
27 #define _FNET_TELNET_H_
28 
29 #if FNET_CFG_TELNET || defined(__DOXYGEN__)
30 
98 /**************************************************************************/
101 typedef struct
102 {
103  struct fnet_sockaddr address;
109 
110 /**************************************************************************/
114 typedef void *fnet_telnet_desc_t;
115 
116 #if defined(__cplusplus)
117 extern "C" {
118 #endif
119 
120 /***************************************************************************/
144 
145 /***************************************************************************/
162 
163 /***************************************************************************/
177 
178 /***************************************************************************/
194 
195 #if defined(__cplusplus)
196 }
197 #endif
198 
201 #endif /* FNET_CFG_TELNET */
202 
203 #endif /* _FNET_TELNET_H_ */
void * fnet_telnet_desc_t
Telnet server descriptor.
Definition: fnet_telnet.h:114
Shell main control structure.
Definition: fnet_shell.h:218
void fnet_telnet_close_session(fnet_telnet_desc_t desc)
Closes the currently active session of the Telnet Server.
const fnet_shell_t * shell
Root-shell structure.
Definition: fnet_telnet.h:107
fnet_bool_t
Boolean type.
Definition: fnet_stdlib.h:80
fnet_bool_t fnet_telnet_is_enabled(fnet_telnet_desc_t desc)
Detects if the Telnet Server service is enabled or disabled.
fnet_telnet_desc_t fnet_telnet_init(fnet_telnet_params_t *params)
Initializes the Telnet Server service.
void fnet_telnet_release(fnet_telnet_desc_t desc)
Releases the Telnet Server service.
Input parameters for fnet_telnet_init().
Definition: fnet_telnet.h:101
Socket address structure.
Definition: fnet_socket.h:268

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