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

sendAwait

suspend fun DatagramSocket.sendAwait(packet: Buffer, port: Int, host: String): Unit

Suspending version of method io.vertx.core.datagram.DatagramSocket.send

Parameters

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

NOTE: This function has been automatically generated from io.vertx.core.datagram.DatagramSocket using Vert.x codegen.

suspend fun DatagramSocket.sendAwait(str: String, port: Int, host: String): Unit

Suspending version of method io.vertx.core.datagram.DatagramSocket.send

Parameters

str - the java.lang.String to write

port - the host port of the remote peer

host -

the host address of the remote peer

NOTE: This function has been automatically generated from io.vertx.core.datagram.DatagramSocket using Vert.x codegen.

suspend fun DatagramSocket.sendAwait(str: String, enc: String, port: Int, host: String): Unit

Suspending version of method io.vertx.core.datagram.DatagramSocket.send

Parameters

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

NOTE: This function has been automatically generated from io.vertx.core.datagram.DatagramSocket using Vert.x codegen.