source: rtems/cpukit/telnetd/telnetd.h @ 1fae7b43

4.104.11
Last change on this file since 1fae7b43 was 1fae7b43, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 15, 2008 at 5:37:16 PM

2008-10-15 Joel Sherrill <joel.sherrill@…>

PR 1331/networking

  • libmisc/shell/shell.c, telnetd/check_passwd.c, telnetd/telnetd.c, telnetd/telnetd.h: Improve comments and explanation of options to rtems_telnetd_initialize. Add extra newline to login sequence from shell.
  • Property mode set to 100644
File size: 1.7 KB
Line 
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
17extern "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 */
38int 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
Note: See TracBrowser for help on using the repository browser.