interface Configurable<out T : Configurable<T, Options>, Options : SocketOptions>
Represent a configurable socket
abstract var options: Options
Current socket options |
open fun configure(block: Options.() -> Unit): T
Configure socket options in block function |
fun <T : Configurable<T, *>> T.tcpNoDelay(): T
Set TCP_NODELAY socket option to disable the Nagle algorithm. |
class SocketBuilder : Configurable<SocketBuilder, SocketOptions>
Socket builder |
|
class TcpSocketBuilder : Configurable<TcpSocketBuilder, SocketOptions>
TCP socket builder |
|
class UDPSocketBuilder : Configurable<UDPSocketBuilder, UDPSocketOptions>
UDP socket builder |