suspend fun DatagramSocket.sendAwait(packet: Buffer, port: Int, host: String): DatagramSocket
Write the given io.vertx.core.buffer.Buffer to the io.vertx.core.net.SocketAddress. The io.vertx.core.Handler will be notified once the write completes.
packet - the io.vertx.core.buffer.Buffer to write
port - the host port of the remote peer
host - the host address of the remote peer
handler - the io.vertx.core.Handler to notify once the write completes.
Returna
reference to this, so the API can be used fluently *
suspend fun DatagramSocket.sendAwait(str: String, port: Int, host: String): DatagramSocket
Write the given java.lang.String to the io.vertx.core.net.SocketAddress using UTF8 encoding. The will be notified once the write completes.
str - the java.lang.String to write
port - the host port of the remote peer
host - the host address of the remote peer
handler - the io.vertx.core.Handler to notify once the write completes.
Returna
reference to this, so the API can be used fluently *
suspend fun DatagramSocket.sendAwait(str: String, enc: String, port: Int, host: String): DatagramSocket
Write the given java.lang.String to the io.vertx.core.net.SocketAddress using the given encoding. The will be notified once the write completes.
str - the java.lang.String to write
enc - the charset used for encoding
port - the host port of the remote peer
host - the host address of the remote peer
handler - the io.vertx.core.Handler to notify once the write completes.
Returna
reference to this, so the API can be used fluently *