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.
Type | Name | Value |
---|---|---|
constant | REUSEADDR | 0 |
constant | KEEPALIVE | 1 |
constant | OOBINLINE | 2 |
constant | NAGLE | 3 |
constant | LINGER | 4 |
constant | TIMEOUT | 5 |
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.