bind
suspend fun bind(localAddress: SocketAddress? = null, configure: SocketOptions.UDPSocketOptions.() -> Unit = {}): BoundDatagramSocket(source)
Bind server socket to listen to localAddress.
suspend fun bind(hostname: String = "0.0.0.0", port: Int = 0, configure: SocketOptions.UDPSocketOptions.() -> Unit = {}): BoundDatagramSocket(source)