Configurable

interface Configurable<out T : Configurable<T, O>, O : SocketOptions>

Represent a configurable socket

Properties

options

abstract var options: O

Current socket options

Functions

configure

open fun configure(block: O.() -> Unit): T

Configure socket options in block function

Extension Functions

tcpNoDelay

fun <T : Configurable<T, *>> T.tcpNoDelay(): T

Set TCP_NODELAY socket option to disable the Nagle algorithm.

Inheritors

SocketBuilder

class SocketBuilder : 
    Configurable<SocketBuilder, SocketOptions>

Socket builder

TcpSocketBuilder

class TcpSocketBuilder : 
    Configurable<TcpSocketBuilder, SocketOptions>

TCP socket builder

UDPSocketBuilder

class UDPSocketBuilder : 
    Configurable<UDPSocketBuilder, UDPSocketOptions>

UDP socket builder