vertx / io.vertx.rxjava.core.datagram / DatagramSocket / listen

listen

open fun listen(port: Int, host: String, handler: Handler<AsyncResult<DatagramSocket>>): 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

handler - the handler will be called when listening

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