SocketOptions

sealed class SocketOptions

Socket options builder

Types

AcceptorOptions

class AcceptorOptions : SocketOptions

TCP server socket options

PeerSocketOptions

open class PeerSocketOptions : SocketOptions

Represents TCP client or UDP socket options

TCPClientSocketOptions

class TCPClientSocketOptions : PeerSocketOptions

Represents TCP client socket options

UDPSocketOptions

class UDPSocketOptions : PeerSocketOptions

Represents UDP socket options

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

Companion Object Properties

Empty

val Empty: SocketOptions

Default socket options

Inheritors

AcceptorOptions

class AcceptorOptions : SocketOptions

TCP server socket options

PeerSocketOptions

open class PeerSocketOptions : SocketOptions

Represents TCP client or UDP socket options