altavir
10/12/2021, 1:37 PMe5l
10/12/2021, 1:38 PMjava.nio.channels
. You can use aSocket
method to create a socket from ktor-networkaltavir
10/12/2021, 1:40 PMconnection = aSocket(ActorSelectorManager(<http://Dispatchers.IO|Dispatchers.IO>))
.tcp().connect(InetSocketAddress(host, port)).connection()
and trying to use connectione5l
10/12/2021, 1:41 PMinput
and output
primitives from ktor-ioaltavir
10/12/2021, 1:43 PMpublic class Connection(
public val socket: Socket,
public val input: ByteReadChannel,
public val output: ByteWriteChannel
)
I don't see any way of converting ByteWriteChannel to Outpute5l
10/12/2021, 1:44 PMBytePacketBuilder
to prepare the message(with buildPacket
) and transfer it with writePacket
.BytePacketBuilder
is Output
altavir
10/12/2021, 1:46 PMe5l
10/12/2021, 1:48 PMaltavir
10/12/2021, 1:48 PMe5l
10/12/2021, 1:48 PMaltavir
10/12/2021, 1:49 PMe5l
10/12/2021, 1:50 PMsuspend
and not suspend
APIaltavir
10/12/2021, 1:54 PMe5l
10/12/2021, 1:55 PMaltavir
10/12/2021, 1:58 PM