TCPClientSocketOptions

Represents TCP client socket options

Properties

Link copied to clipboard

SO_KEEPALIVE option is to enable/disable TCP keep-alive

Link copied to clipboard

SO_LINGER option applied at socket close, not recommended to set to 0 however useful for debugging Value of -1 is the default and means that it is not set and system-dependant

Link copied to clipboard

TCP_NODELAY socket option, useful to disable Nagle

Link copied to clipboard

Socket incoming buffer size (SO_RCVBUF), -1 or 0 to make system decide

Link copied to clipboard

SO_REUSEADDR option

Link copied to clipboard

SO_REUSEPORT option, may not work with old JDK (will be silently ignored)

Link copied to clipboard

Socket ougoing buffer size (SO_SNDBUF), -1 or 0 to make system decide

Link copied to clipboard

Socket timeout (read and write).

Link copied to clipboard

ToS value, TypeOfService.UNDEFINED by default, may not work with old JDK (will be silently ignored)