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 = 0SO_REUSEADDR. A boolean value default to false.
public const TCPOption KEEPALIVE = 1SO_KEEPALIVE. A boolean value default to false.
public const TCPOption OOBINLINE = 2SO_OOBINLINE. A boolean value default to false.
public const TCPOption NAGLE = 3Nagle's algorithm. This is the negation of TCP_NODELAY. A boolean value default to true.
public const TCPOption LINGER = 4SO_LINGER. An integer value default to OS setting. Default to -1, i.e. disabling lingering upon close operation.
public const TCPOption TIMEOUT = 5SO_TIMEOUT. An integer value default to OS setting. Default to 0, i.e. waiting indefinitely on read operation.