RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
45typedef 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
87
95
101 uint16_t port;
103
115rtems_status_code rtems_telnetd_start(const rtems_telnetd_config_table *config);
116
124extern rtems_telnetd_config_table rtems_telnetd_config;
125
131rtems_status_code rtems_telnetd_initialize(void);
132
133#ifdef __cplusplus
134}
135#endif
136
137#endif
rtems_status_code
Classic API Status.
Definition: status.h:43
uint32_t rtems_task_priority
Definition: tasks.h:55
Instantatiate a New Terminal Shell.
Definition: deflate.c:115
Telnet configuration structure.
Definition: telnetd.h:45
uint16_t port
Server port number in host byte order.
Definition: telnetd.h:101
size_t stack_size
Task stack size.
Definition: telnetd.h:71
uint16_t client_maximum
Maximum number of clients which can connect to the system at a time.
Definition: telnetd.h:94
rtems_telnetd_command command
Function invoked for each Telnet connection.
Definition: telnetd.h:52
void * arg
Argument for command function.
Definition: telnetd.h:57
rtems_task_priority priority
Task priority.
Definition: telnetd.h:64
bool keep_stdio
This is an obsolete configuration option.
Definition: telnetd.h:86