tfTeldUserInit

Jump to: navigation, search

Table of Contents >> Application Reference >> Telnet Daemon


#include <trsocket.h>


int tfTeldUserInit (unsigned int maxNumberServers);


Function Description

This function initializes the Treck Telnet server subsystem and establishes an upper limit on the number of concurrent Telnet servers. A server may be stopped and restarted without counting against this limit.

This function must be called prior to calling any Multiple Server API functions. It may be called prior to calling Single Server API functions (with maxNumberServers set to 1).

Calling this function after a server has been created or started will return an error. However, you can call tfTeldUserInit() after you have stopped all servers, if you need to change the TELNET server limit.


Parameters

  • maxNumberServers
    The maximum number of concurrent Telnet servers.

    Specify 0 to use the default configuration setting, TM_TELD_DEF_MAX_SERVERS (1 unless you have defined it to be something else).

    Specify 1 to enable the Single Server API functions.


Returns

  • TM_ENOERROR
    Success
  • TM_ENOBUFS
    Could not allocate the array of Telnet server handles.
  • TM_EALREADY
    tfTeldUserInit() has already been called successfully.


Table of Contents >> Application Reference >> Telnet Daemon