//reikai-core/io.github.kerelape.reikai.io.network/TcpChannel
TcpChannel
[JVM]
class TcpChannel(socket: AsynchronousSocketChannel, parent: Source) : Channel
TCP destination.
Since
0.0.0
Constructors
| TcpChannel | [JVM] fun TcpChannel(socket: AsynchronousSocketChannel, parent: Source) |
Functions
| Name | Summary |
|---|---|
| close | [JVM] open suspend override fun close(): Source Close the underlying AsynchronousSocketChannel. |
| dataize | [JVM] open suspend override fun dataize(): ByteArray Read next chunk of data from the socket. |
| put | [JVM] open suspend override fun put(data: Entity): Entity Put arbitrary data to the socket channel. |