SocketOptions

sealed class SocketOptions

Socket options builder

Types

Link copied to clipboard
class AcceptorOptions : SocketOptions

TCP server socket options

Link copied to clipboard
object Companion
Link copied to clipboard
open class PeerSocketOptions : SocketOptions

Represents TCP client or UDP socket options

Link copied to clipboard
class TCPClientSocketOptions : SocketOptions.PeerSocketOptions

Represents TCP client socket options

Link copied to clipboard
class UDPSocketOptions : SocketOptions.PeerSocketOptions

Represents UDP socket options

Properties

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 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