RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
cpukit
include
rtems
telnetd.h
Go to the documentation of this file.
1
6
7
/*
8
* Copyright (c) 2001 Fernando Ruiz Casas <fruizcasas@gmail.com>
9
* Reworked by Till Straumann and .h overhauled by Joel Sherrill.
10
* Copyright (c) 2009 embedded brains GmbH & Co. KG
11
*
12
* The license and distribution terms for this file may be
13
* found in the file LICENSE in this distribution or at
14
* http://www.rtems.org/license/LICENSE.
15
*/
16
17
#ifndef _RTEMS_TELNETD_H
18
#define _RTEMS_TELNETD_H
19
20
#include <
rtems.h
>
21
#include <
rtems/shell.h
>
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
bool
rtems_telnetd_login_check
(
28
const
char
*user,
29
const
char
*passphrase
30
);
31
35
typedef
void (*
rtems_telnetd_command
)(
36
char
*
/* device name */
,
37
void
*
/* arg */
38
);
39
43
typedef
struct
{
50
rtems_telnetd_command
command
;
51
55
void
*
arg
;
56
62
rtems_task_priority
priority
;
63
69
size_t
stack_size
;
70
76
rtems_shell_login_check_t
login_check
;
77
84
bool
keep_stdio
;
85
92
uint16_t
client_maximum
;
93
99
uint16_t
port
;
100
}
rtems_telnetd_config_table
;
101
113
rtems_status_code
rtems_telnetd_start
(
const
rtems_telnetd_config_table
*config);
114
122
extern
rtems_telnetd_config_table
rtems_telnetd_config
;
123
129
rtems_status_code
rtems_telnetd_initialize
(
void
);
130
131
#ifdef __cplusplus
132
}
133
#endif
134
135
#endif
rtems_status_code
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition
status.h:85
rtems_task_priority
uint32_t rtems_task_priority
This integer type represents task priorities of the Classic API.
Definition
types.h:257
rtems.h
This header file defines the RTEMS Classic API.
shell.h
Instantatiate a New Terminal Shell.
rtems_telnetd_config_table
Telnet configuration structure.
Definition
telnetd.h:43
rtems_telnetd_config_table::port
uint16_t port
Server port number in host byte order.
Definition
telnetd.h:99
rtems_telnetd_config_table::stack_size
size_t stack_size
Task stack size.
Definition
telnetd.h:69
rtems_telnetd_config_table::client_maximum
uint16_t client_maximum
Maximum number of clients which can connect to the system at a time.
Definition
telnetd.h:92
rtems_telnetd_config_table::login_check
rtems_shell_login_check_t login_check
Login check function.
Definition
telnetd.h:76
rtems_telnetd_config_table::command
rtems_telnetd_command command
Function invoked for each Telnet connection.
Definition
telnetd.h:50
rtems_telnetd_config_table::arg
void * arg
Argument for command function.
Definition
telnetd.h:55
rtems_telnetd_config_table::priority
rtems_task_priority priority
Task priority.
Definition
telnetd.h:62
rtems_telnetd_config_table::keep_stdio
bool keep_stdio
This is an obsolete configuration option.
Definition
telnetd.h:84
rtems_telnetd_initialize
rtems_status_code rtems_telnetd_initialize(void)
Initializes the Telnet subsystem.
Definition
telnetd-init.c:15
rtems_telnetd_command
void(*) rtems_telnetd_command(char *, void *)
Telnet command type.
Definition
telnetd.h:35
rtems_telnetd_config
rtems_telnetd_config_table rtems_telnetd_config
Telnet configuration.
rtems_telnetd_start
rtems_status_code rtems_telnetd_start(const rtems_telnetd_config_table *config)
Starts the Telnet server using the provided configuration.
Definition
telnetd.c:361
rtems_telnetd_login_check
bool rtems_telnetd_login_check(const char *user, const char *passphrase)
Standard Telnet login check that uses DES to encrypt the passphrase.
Definition
check_passwd.c:76
Generated by
1.18.0