bindUdp

suspend fun NetworkRuntime.bindUdp(port: Int = 0, host: String = "0.0.0.0"): UdpSocket

Bind a UDP socket on host:port (port 0 = any free port). host defaults to the IPv4 wildcard 0.0.0.0; pass "::" to bind the IPv6 (dual-stack on most OSes) wildcard, the way libtorrent's udp_socket::bind honours the listen interface's address family.