PeerSocketOptions

open class PeerSocketOptions : SocketOptions

Represents TCP client or UDP socket options

Properties

receiveBufferSize

var receiveBufferSize: Int

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

sendBufferSize

var sendBufferSize: Int

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

Inherited Properties

customOptions

val customOptions: MutableMap<Any, Any?>

reuseAddress

var reuseAddress: Boolean

SO_REUSEADDR option

reusePort

var reusePort: Boolean

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

typeOfService

var typeOfService: TypeOfService

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

Functions

copyCommon

open fun copyCommon(from: SocketOptions): Unit

Inheritors

TCPClientSocketOptions

class TCPClientSocketOptions : PeerSocketOptions

Represents TCP client socket options

UDPSocketOptions

class UDPSocketOptions : PeerSocketOptions

Represents UDP socket options