class UDPSocketBuilder : Configurable<UDPSocketBuilder, UDPSocketOptions>
UDP socket builder
UDPSocketBuilder(selector: SelectorManager, options: UDPSocketOptions)
UDP socket builder |
var options: UDPSocketOptions
Current socket options |
fun bind(localAddress: <ERROR CLASS>? = null, configure: UDPSocketOptions.() -> Unit = {}): BoundDatagramSocket
Bind server socket to listen to localAddress. |
|
fun connect(remoteAddress: <ERROR CLASS>, localAddress: <ERROR CLASS>? = null, configure: UDPSocketOptions.() -> Unit = {}): ConnectedDatagramSocket
Create a datagram socket to listen datagrams at localAddress and set to remoteAddress. |
open fun configure(block: Options.() -> Unit): T
Configure socket options in block function |