SocketBuilder

class SocketBuilder : Configurable<SocketBuilder, SocketOptions>

Socket builder

Functions

Link copied to clipboard
open fun configure(block: SocketOptions.() -> Unit): SocketBuilder

Configure socket options in block function

Link copied to clipboard
fun tcp(): TcpSocketBuilder

Build TCP socket.

Link copied to clipboard
fun udp(): UDPSocketBuilder

Build UDP socket.

Properties

Link copied to clipboard
open override var options: SocketOptions

Current socket options