diff options
Diffstat (limited to 'cpukit/include/rtems/telnetd.h')
-rw-r--r-- | cpukit/include/rtems/telnetd.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/cpukit/include/rtems/telnetd.h b/cpukit/include/rtems/telnetd.h index 2339bad8b6..e662874a81 100644 --- a/cpukit/include/rtems/telnetd.h +++ b/cpukit/include/rtems/telnetd.h @@ -59,13 +59,14 @@ typedef struct { /** * @brief Task priority. * - * If this parameter is equal to zero, then the priority of network task is - * used or 100 if this priority is less than two. + * Use 0 for the default value. */ rtems_task_priority priority; /** * @brief Task stack size. + * + * Use 0 for the default value. */ size_t stack_size; @@ -77,12 +78,10 @@ typedef struct { rtems_shell_login_check_t login_check; /** - * @brief Keep standard IO of the caller. + * @brief This is an obsolete configuration option. * - * Telnet takes over the standard input, output and error associated with - * task, if this parameter is set to @c true. In this case, it will @b not - * listen on any sockets. When this parameter is @c false, Telnet will - * create other tasks for the shell which listen on sockets. + * It must be set to false, otherwise rtems_telnetd_start() will do nothing + * and returns with a status of RTEMS_NOT_IMPLEMENTED. */ bool keep_stdio; @@ -96,7 +95,15 @@ typedef struct { } rtems_telnetd_config_table; /** - * @brief Start the Telnet subsystem with the provided configuration. + * @brief Starts the Telnet server using the provided configuration. + * + * @retval RTEMS_SUCCESSFUL Successful operation. + * @retval RTEMS_INVALID_ADDRESS The command function in the configuration is + * @c NULL. + * @retval RTEMS_RESOURCE_IN_USE The Telnet server was already started. + * @retval RTEMS_NOT_IMPLEMENTED The keep stdio configuration option is true. + * @retval RTEMS_UNSATISFIED Not enough resources to start the Telnet server or + * task priority in configuration is invalid. */ rtems_status_code rtems_telnetd_start(const rtems_telnetd_config_table *config); |