vertx / io.vertx.kotlin.core.datagram / io.vertx.core.datagram.DatagramSocket / listenAwait

# listenAwait

`suspend fun DatagramSocket.listenAwait(port: Int, host: String): DatagramSocket`

Start listening on the given port and host. The handler will be called when the socket is listening.

### Parameters

`port` - the port to listen on

`host` - the host to listen on

Return
a reference to this, so the API can be used fluently *