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 | * This program is distributed in the hope that it will be useful, |
---|
7 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
8 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
9 | * |
---|
10 | * $Id$ |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef _RTEMS_TELNETD_H |
---|
14 | #define _RTEMS_TELNETD_H |
---|
15 | |
---|
16 | #ifdef __cplusplus |
---|
17 | extern "C" { |
---|
18 | #endif |
---|
19 | |
---|
20 | /** |
---|
21 | * This method initializes the telnetd subsystem. |
---|
22 | * |
---|
23 | * @param[in] cmd is the function which is the "shell" telnetd invokes |
---|
24 | * @param[in] arg is the context pointer to cmd |
---|
25 | * @param[in] remainOnCallerSTDIO is set to TRUE if telnetd takes over the |
---|
26 | * standard in, out and error associated with task. In this case, |
---|
27 | * it will be NOT be listening on any sockets. When this parameters |
---|
28 | * is FALSE the telnetd will create other tasks for the shell |
---|
29 | * which listen on sockets. |
---|
30 | * @param[in] stack is stack size of spawned task. |
---|
31 | * @param[in] priority is the initial priority of spawned task(s). If |
---|
32 | * this parameter is less than 2, then the default priority of 100 is used. |
---|
33 | * @param[in] askForPassword is set to TRUE if telnetd is to ask for a |
---|
34 | * password. This is set to FALSE to invoke "cmd" with no password check. |
---|
35 | * This may be OK if "cmd" includes its own check and indeed the RTEMS Shell |
---|
36 | * uses a login with a user name and password so this is the usual case. |
---|
37 | */ |
---|
38 | int rtems_telnetd_initialize( |
---|
39 | void (*cmd)(char *, void *), |
---|
40 | void *arg, |
---|
41 | bool remainOnCallerSTDIO, |
---|
42 | size_t stack, |
---|
43 | rtems_task_priority priority, |
---|
44 | bool askForPassword |
---|
45 | ); |
---|
46 | |
---|
47 | #ifdef __cplusplus |
---|
48 | } |
---|
49 | #endif |
---|
50 | |
---|
51 | #endif |
---|