tfTeldUserStopHandle

Jump to: navigation, search

Table of Contents >> Application Reference >> Telnet Daemon


#include <trsocket.h>


int tfTeldUserStopHandle (ttUserTeldSrvHandle userSrvHandle);


Function Description

This function stops execution of the Telnet server by closing the listening socket and killing all existing connections. If the Telnet server was created in blocking mode, this function will cause tfTeldUserExecuteHandle() to wake up and return to its caller.


Parameter


Returns

  • TM_ENOERROR
    Success.
  • TM_EALREADY
    The TELNET server has already been stopped.
  • TM_EINVAL
    Invalid Telnet server handle.
  • TM_EPERM
    Not initialized; call tfTeldUserInit() first.


Table of Contents >> Application Reference >> Telnet Daemon