Skip to main content

Socket Options: IPPROTO_TCP

Open topic with navigation CAPL Functions » TCP/IP API » Socket Options » IPPROTO_TCP Valid for: CANoe DE • CANoe4SW DE The following socket options can be set at the IPPROTO_TCP socket option level in CAPL. They influence the behavior of the TCP protocol per socket. For all BOOL typed options a non-zero value will be interpreted as TRUE. Stacks
  • C: Supported by CANoe internal network stack
  • W: Supported by Windows network stack

Socket Options

  • TCP_NODELAY
    • Set/Get: set/get
    • Description: The Nagle algorithm for TCP sockets will be disabled if this option is set to a non-zero value. The Nagle algorithm collects small amounts of output data to send in a single packet if outstanding data has not yet been acknowledged.
    • Type: DWORD (boolean)
    • Stack: C/W
  • TCP_MAXSEG
    • Set/Get: C:set/get, W: get
    • Description: The maximum segment size is normally negotiated between sender and receiver. This option allows to check the result of this operation and to reduce it.
    • Type: DWORD
    • Stack: C/W
  • TCP_NOOPT
    • Set/Get: set/get
    • Description: Avoid the TCP protocol to send TCP options.
    • Type: DWORD (boolean)
    • Stack: C
  • TCP_NOPUSH
    • Set/Get: set/get
    • Description: Normally the push flag is set and the data is sent immediately on the end of every user call to TcpSend. When the option is set to a non-zero value, TCP will delay sending any data until either the socket is closed, or the internal send buffer is filled.
    • Type: DWORD (boolean)
    • Stack: C
See Also