connect

fun connect(
    remoteAddress: NetworkAddress,
    localAddress: NetworkAddress? = null,
    configure: UDPSocketOptions.() -> Unit = {}
): ConnectedDatagramSocket

Create a datagram socket to listen datagrams at localAddress and set to remoteAddress.