PeerSocketOptions

open class PeerSocketOptions : SocketOptions

Represents TCP client or UDP socket options

Properties

Link copied to clipboard
var receiveBufferSize: Int

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

Link copied to clipboard
var reuseAddress: Boolean = false

SO_REUSEADDR option

Link copied to clipboard
var reusePort: Boolean = false

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

Link copied to clipboard
var sendBufferSize: Int

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

Link copied to clipboard
var typeOfService: TypeOfService

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

Inheritors

Link copied to clipboard
Link copied to clipboard