Channel#writePacket(Buffer) method.
| Modifier and Type | Field and Description |
|---|---|
| protected final Channel | |
| protected volatile boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public IoWriteFuture | writeData(Buffer
the buffer to encode and send buffer)Note the buffer must not be touched until the returned write future is completed. Implements org. Encode and send the given data packet buffer Note the buffer has to have 5 bytes free at the beginning to allow the encoding to take place. |
| channel | back to summary |
|---|---|
| protected final Channel channel | |
| closed | back to summary |
|---|---|
| protected volatile boolean closed | |
| DefaultChannelStreamWriter | back to summary |
|---|---|
| public DefaultChannelStreamWriter(Channel channel) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this channel. After a channel is closed, any further attempt to invoke I/O
operations upon it will cause a If this channel is already closed then invoking this method has no effect. This method may be invoked at any time. If some other thread has already invoked it, however, then another invocation will block until the first invocation is complete, after which it will return without effect.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements java. Doc from java. Tells whether or not this channel is open.
| |
| writeData | back to summary |
|---|---|
| public IoWriteFuture writeData(Buffer buffer) throws IOException Implements org. Doc from org. Encode and send the given data packet buffer Note the buffer has to have 5 bytes free at the beginning to allow the encoding to take place. Also, the write position of the buffer has to be set to the position of the last byte to write.
| |