tfTeldUserStopHandle
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
- userSrvHandle
- The server handle, as returned by tfTeldUserCreate().
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.