vertx / io.vertx.kotlin.core.net / io.vertx.core.net.NetSocket / sendFileAwait

sendFileAwait

suspend fun NetSocket.sendFileAwait(filename: String): Unit

Same as io.vertx.core.net.NetSocket but also takes a handler that will be called when the send has completed or a failure has occurred

Parameters

filename - file name of the file to send

resultHandler - handler

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

suspend fun NetSocket.sendFileAwait(filename: String, offset: Long): Unit

Same as io.vertx.core.net.NetSocket but also takes a handler that will be called when the send has completed or a failure has occurred

Parameters

filename - file name of the file to send

offset - offset

resultHandler - handler

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

suspend fun NetSocket.sendFileAwait(filename: String, offset: Long, length: Long): Unit

Same as io.vertx.core.net.NetSocket but also takes a handler that will be called when the send has completed or a failure has occurred

Parameters

filename - file name of the file to send

offset - offset

length - length

resultHandler - handler

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