bind
suspend fun bind(host: String = "0.0.0.0", port: Int = 0, maxDatagramSize: Int = DEFAULT_MAX_DATAGRAM_SIZE, selector: SelectorManager? = null, loggerFactory: LoggerFactory = LoggerFactory.Global): KtorUdpTransport(source)
Binds a UDP socket to host and port (0 picks a free port).
Parameters
selector
the ktor selector to use; when null, the transport creates one on Dispatchers.IO and closes it with the transport.