public class SocketsKt
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
awaitClosed(ASocket $receiver,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Await until socket close
|
static boolean |
isClosed(ASocket $receiver)
Check if the socket is closed
|
static kotlinx.coroutines.io.ByteReadChannel |
openReadChannel(AReadable $receiver)
Open a read channel, could be done only once
|
static kotlinx.coroutines.io.ByteWriteChannel |
openWriteChannel(AWritable $receiver,
boolean autoFlush)
Open a write channel, could be opened only once
|
public static boolean isClosed(ASocket $receiver)
Check if the socket is closed
public static java.lang.Object awaitClosed(ASocket $receiver, kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Await until socket close
public static kotlinx.coroutines.io.ByteReadChannel openReadChannel(AReadable $receiver)
Open a read channel, could be done only once
public static kotlinx.coroutines.io.ByteWriteChannel openWriteChannel(AWritable $receiver, boolean autoFlush)
Open a write channel, could be opened only once
autoFlush - whether returned channel do flush for every write operation