RTEMS 6.1-rc1
telnetd.h
Go to the documentation of this file.
1
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
24extern "C" {
25#endif
26
28 const char *user,
29 const char *passphrase
30);
31
35typedef void (*rtems_telnetd_command)(
36 char * /* device name */,
37 void * /* arg */
38);
39
43typedef struct {
51
55 void *arg;
56
63
69 size_t stack_size;
70
76 rtems_shell_login_check_t login_check;
77
85
93
99 uint16_t port;
101
114
123
130
131#ifdef __cplusplus
132}
133#endif
134
135#endif
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
uint32_t rtems_task_priority
This integer type represents task priorities of the Classic API.
Definition: types.h:257
This header file defines the RTEMS Classic API.
Instantatiate a New Terminal Shell.
Definition: deflate.c:114
Telnet configuration structure.
Definition: telnetd.h:43
uint16_t port
Server port number in host byte order.
Definition: telnetd.h:99
size_t stack_size
Task stack size.
Definition: telnetd.h:69
uint16_t client_maximum
Maximum number of clients which can connect to the system at a time.
Definition: telnetd.h:92
rtems_telnetd_command command
Function invoked for each Telnet connection.
Definition: telnetd.h:50
void * arg
Argument for command function.
Definition: telnetd.h:55
rtems_task_priority priority
Task priority.
Definition: telnetd.h:62
bool keep_stdio
This is an obsolete configuration option.
Definition: telnetd.h:84
rtems_status_code rtems_telnetd_initialize(void)
Initializes the Telnet subsystem.
Definition: telnetd-init.c:15
rtems_telnetd_config_table rtems_telnetd_config
Telnet configuration.
rtems_status_code rtems_telnetd_start(const rtems_telnetd_config_table *config)
Starts the Telnet server using the provided configuration.
Definition: telnetd.c:361
void(* rtems_telnetd_command)(char *, void *)
Telnet command type.
Definition: telnetd.h:35
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