vertx / io.vertx.reactivex.core.datagram / DatagramSocket / rxSend

# rxSend

`open fun rxSend(packet: Buffer, port: Int, host: String): Single<DatagramSocket>`

Write the given io.vertx.reactivex.core.buffer.Buffer to the io.vertx.reactivex.core.net.SocketAddress. The io.vertx.reactivex.core.Handler will be notified once the write completes.

### Parameters

`packet` - the io.vertx.reactivex.core.buffer.Buffer to write

`port` - the host port of the remote peer

`host` - the host address of the remote peer

Return

`open fun rxSend(str: String, port: Int, host: String): Single<DatagramSocket>`

Write the given java.lang.String to the io.vertx.reactivex.core.net.SocketAddress using UTF8 encoding. The will be notified once the write completes.

### Parameters

`str` - the java.lang.String to write

`port` - the host port of the remote peer

`host` - the host address of the remote peer

Return

`open fun rxSend(str: String, enc: String, port: Int, host: String): Single<DatagramSocket>`

Write the given java.lang.String to the io.vertx.reactivex.core.net.SocketAddress using the given encoding. The will be notified once the write completes.

### 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

Return