RTEMS: cpukit/include/rtems/telnetd.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
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
26extern "C" {
27#endif
28
29bool rtems_telnetd_login_check(
30 const char *user,
31 const char *passphrase
32);
33
37typedef 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
64 rtems_task_priority priority;
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;
102} rtems_telnetd_config_table;
103
115 rtems_status_code rtems_telnetd_start(const rtems_telnetd_config_table *config);
116
124extern 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
rtems_status_code
rtems_status_code
Classic API Status.
Definition: status.h:43
rtems_task_priority
uint32_t rtems_task_priority
Definition: tasks.h:55
rtems.h
shell.h
Instantatiate a New Terminal Shell.
config_s
Definition: deflate.c:115
rtems_telnetd_config_table
Telnet configuration structure.
Definition: telnetd.h:45
rtems_telnetd_config_table::port
uint16_t port
Server port number in host byte order.
Definition: telnetd.h:101
rtems_telnetd_config_table::stack_size
size_t stack_size
Task stack size.
Definition: telnetd.h:71
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:94
rtems_telnetd_config_table::login_check
rtems_shell_login_check_t login_check
Login check function.
Definition: telnetd.h:78
rtems_telnetd_config_table::command
rtems_telnetd_command command
Function invoked for each Telnet connection.
Definition: telnetd.h:52
rtems_telnetd_config_table::arg
void * arg
Argument for command function.
Definition: telnetd.h:57
rtems_telnetd_config_table::priority
rtems_task_priority priority
Task priority.
Definition: telnetd.h:64
rtems_telnetd_config_table::keep_stdio
bool keep_stdio
This is an obsolete configuration option.
Definition: telnetd.h:86