tfSlipSetOptions
Table of Contents >> Programmer's Reference
| #include <trsocket.h> |
| int tfSlipSetOptions | ( |
| ttUserInterface interfaceHandle, | |
| int optionName, | |
| void TM_FAR * optionValuePtr, | |
| int optionLength | |
| ); |
Function Description
Configure SLIP options. optionValuePtr points to a variable of type as described below. optionLength contains the size of that variable. The only option supported is TM_SLIP_OPT_SEND_BUF_SIZE.
| optionName | Data Type | Description |
| TM_SLIP_OPT_SEND_BUF_SIZE | unsigned short | Length of data buffered by the SLIP link layer (but not beyond the end of a packet) before the device driver send function is called.
Default: 1 byte |
Parameters
- interfaceHandle
- Interface handle of the SLIP interface we want to set the option on.
- optionName
- The option to set. See above.
- optionValuePtr
- The pointer to a user variable into which the option value is set. User variable is of data type described above.
- optionLength
- Size of the user variable, which is the size of the option data type.
Returns
- TM_ENOERROR
- Success
- TM_ENOBUFS
- Insufficient memory to complete operation.
- TM_EINVAL
- Invalid option length for option, or invalid option value for option.
- TM_EPERM
- Device/Interface is not a SLIP interface.
- TM_EPROTONOSUPPORT
- Option name not supported.