public interface PacketWriter extends Closeable, Cancelable
Modifier and Type | Interface and Description |
---|---|
static class |
PacketWriter.Factory
Factory for
PacketWriter . |
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flushes all the pending packets.
|
int |
packetSize() |
long |
pos() |
void |
writePacket(io.netty.buffer.ByteBuf packet)
Writes a packet.
|
cancel
void writePacket(io.netty.buffer.ByteBuf packet) throws IOException
packet
- the packetIOException
void flush() throws IOException
IOException
int packetSize()
long pos()
Copyright © 2023. All Rights Reserved.