tfTeldUserSetOption
Table of Contents >> Application Reference >> Telnet Daemon
| #include <trsocket.h> |
| int tfTeldUserSetOption | ( |
| ttUserTeldSrvHandle userSrvHandle, | |
| int optionName, | |
| void TM_FAR * optionValuePtr, | |
| int optionLength | |
| ); |
Function Description
This function allows the user to set or change one of the Telnet server options listed below.
Parameters
- userSrvHandle
- The server handle, as returned by tfTeldUserCreate().
- optionName
- One of the option names defined below.
- optionValuePtr
- A pointer to a variable containing the new value.
- optionLength
- The size of the variable pointed to by optionValuePtr.
Options
- TM_TELD_OPT_MAX_CONN
- Change the maximum number of concurrent connections that this server will support. This option may only be set prior to calling tfTeldUserExecuteHandle().
Default: the maximum number of sockets (tvMaxNumberSockets or TM_SOC_INDEX_MAX).
- Change the maximum number of concurrent connections that this server will support. This option may only be set prior to calling tfTeldUserExecuteHandle().
- TM_TELD_OPT_MAX_BACKLOG
- Change the maximum number of pending connections that this server will support. This option may only be set prior to calling tfTeldUserExecuteHandle().
Default: the maximum number of sockets (tvMaxNumberSockets or TM_SOC_INDEX_MAX).
- Change the maximum number of pending connections that this server will support. This option may only be set prior to calling tfTeldUserExecuteHandle().
Returns
- TM_ENOERROR
- Success
- TM_EPERM
- Not initialized; call tfTeldUserInit() first, or
Not allowed after starting server.
- Not initialized; call tfTeldUserInit() first, or
- TM_EINVAL
- Invalid parameter.
- TM_ESHUTDOWN
- Server has stopped.