tfTeldUserExecuteHandle

Jump to: navigation, search

Table of Contents >> Application Reference >> Telnet Daemon


#include <trsocket.h>


int tfTeldUserExecuteHandle (ttUserTeldSrvHandle userSrvHandle);


Function Description

In blocking mode, this function runs the Telnet server and does not return until the user calls tfTeldUserStopHandle() from a different task.

In non-blocking mode, this function services all pending operations and returns when the Telnet server is idle. The user must call tfTeldUserExecuteHandle() periodically to keep servicing the Telnet server. The responsiveness of the Telnet server depends on how frequently you call tfTeldUserExecuteHandle(). You can terminate the server at any time by calling tfTeldUserStopHandle().

You must call tfTeldUserBind() prior to calling tfTeldUserExecuteHandle().


Parameters


Returns

  • TM_ENOERROR
    Success
  • TM_EPERM
    Not initialized; call tfTeldUserInit() first.
  • TM_EINVAL
    Invalid Telnet server handle.


Table of Contents >> Application Reference >> Telnet Daemon