RTEMS  5.1
telnetd.h
1 /*
2  * Original Author: Fernando RUIZ CASAS (fernando.ruiz@ctv.es)
3  * May 2001
4  * Reworked by Till Straumann and .h overhauled by Joel Sherrill.
5  *
6  * Copyright (c) 2009 embedded brains GmbH and others.
7  *
8  * embedded brains GmbH
9  * Obere Lagerstr. 30
10  * D-82178 Puchheim
11  * Germany
12  * <rtems@embedded-brains.de>
13  *
14  * The license and distribution terms for this file may be
15  * found in the file LICENSE in this distribution or at
16  * http://www.rtems.org/license/LICENSE.
17  */
18 
19 #ifndef _RTEMS_TELNETD_H
20 #define _RTEMS_TELNETD_H
21 
22 #include <rtems.h>
23 #include <rtems/shell.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 bool rtems_telnetd_login_check(
30  const char *user,
31  const char *passphrase
32 );
33 
37 typedef void (*rtems_telnetd_command)(
38  char * /* device name */,
39  void * /* arg */
40 );
41 
45 typedef struct {
52  rtems_telnetd_command command;
53 
57  void *arg;
58 
65 
71  size_t stack_size;
72 
78  rtems_shell_login_check_t login_check;
79 
86  bool keep_stdio;
87 
94  uint16_t client_maximum;
95 
101  uint16_t port;
103 
115 rtems_status_code rtems_telnetd_start(const rtems_telnetd_config_table *config);
116 
124 extern rtems_telnetd_config_table rtems_telnetd_config;
125 
131 rtems_status_code rtems_telnetd_initialize(void);
132 
133 #ifdef __cplusplus
134 }
135 #endif
136 
137 #endif
Definition: deflate.c:115
Instantatiate a New Terminal Shell.
void * arg
Argument for command function.
Definition: telnetd.h:57
rtems_task_priority priority
Task priority.
Definition: telnetd.h:64
size_t stack_size
Task stack size.
Definition: telnetd.h:71
uint16_t port
Server port number in host byte order.
Definition: telnetd.h:101
rtems_telnetd_command command
Function invoked for each Telnet connection.
Definition: telnetd.h:52
rtems_status_code
Classic API Status.
Definition: status.h:43
bool keep_stdio
This is an obsolete configuration option.
Definition: telnetd.h:86
uint16_t client_maximum
Maximum number of clients which can connect to the system at a time.
Definition: telnetd.h:94
Telnet configuration structure.
Definition: telnetd.h:45
uint32_t rtems_task_priority
Definition: tasks.h:55