TCPOption ENUM

Option names for setting up TCP connection, based on BSD socket API. Use these enum values alongside a value of appropriate type on SocketConfig object.

All Members


TypeNameValue
constantREUSEADDR0
constantKEEPALIVE1
constantOOBINLINE2
constantNAGLE3
constantLINGER4
constantTIMEOUT5

Constants


public const TCPOption REUSEADDR = 0

SO_REUSEADDR. A boolean value default to false.

public const TCPOption KEEPALIVE = 1

SO_KEEPALIVE. A boolean value default to false.

public const TCPOption OOBINLINE = 2

SO_OOBINLINE. A boolean value default to false.

public const TCPOption NAGLE = 3

Nagle's algorithm. This is the negation of TCP_NODELAY. A boolean value default to true.

public const TCPOption LINGER = 4

SO_LINGER. An integer value default to OS setting. Default to -1, i.e. disabling lingering upon close operation.

public const TCPOption TIMEOUT = 5

SO_TIMEOUT. An integer value default to OS setting. Default to 0, i.e. waiting indefinitely on read operation.