Jump to: navigation, search

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


  • 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.


    Insufficient memory to complete operation.
    Invalid option length for option, or invalid option value for option.
    Device/Interface is not a SLIP interface.
    Option name not supported.

Table of Contents >> Programmer's Reference