public interface PacketWriter extends Channel
Modifier and Type | Method and Description |
---|---|
IoWriteFuture |
writePacket(Buffer buffer)
Encode and send the given buffer.
|
IoWriteFuture writePacket(Buffer buffer) throws IOException
buffer
- the buffer to encode and send. NOTE: the buffer must not be touched
until the returned write future is completed.IoWriteFuture
that can be used to check when the packet has actually been sentIOException
- if an error occurred when encoding sending the packetCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.