| Modifier and Type | Method and Description |
|---|---|
| public ChannelListener. | getCloseSetter()
Redeclares org. Get the setter which can be used to change the close listener for this channel. |
| public ChannelListener. | getReadSetter()
Redeclares org. Get the setter which can be used to change the read listener for this channel. |
| public int | Returns: the size of the received message, 0 if no message is available, and -1 if the message channel has reached an end-of-file conditionthe address buffer into which the source and destination addresses should be written ( addressBuffer, ByteBuffer null to discard that information)the buffer into which data should be read buffer)Receive a message via this channel. |
| public long | Returns: the size of the received message, 0 if no message is available, and -1 if the message channel has reached an end-of-file conditionthe address buffer into which the source and destination addresses should be written ( addressBuffer, ByteBuffer[] null to discard that information)the buffers that will hold the message buffers)Receive a message. |
| public long | Returns: the size of the received message, 0 if no message is available, and -1 if the message channel has reached an end-of-file conditionthe address buffer into which the source and destination addresses should be written ( addressBuffer, ByteBuffer[] null to discard that information)the buffers that will hold the message buffers, int the offset into the array of buffers of the first buffer to read into offs, int the number of buffers to fill len)Receive a message. |
| getCloseSetter | back to summary |
|---|---|
| public ChannelListener. Redeclares org. Doc from org. Get the setter which can be used to change the close listener for this channel. If the channel is already closed, then the listener will not be called.
| |
| getReadSetter | back to summary |
|---|---|
| public ChannelListener. Redeclares org. Doc from org. Get the setter which can be used to change the read listener for this channel.
| |
| receiveFrom | back to summary |
|---|---|
| public int receiveFrom(SocketAddressBuffer addressBuffer, ByteBuffer buffer) throws IOException Receive a message via this channel. If a message is immediately available, then the datagram is written into the given buffer and the source and destination addresses (if available) read into the address buffer. If there is no message immediately available, this method will return 0.
| |
| receiveFrom | back to summary |
|---|---|
| public long receiveFrom(SocketAddressBuffer addressBuffer, ByteBuffer[] buffers) throws IOException Receive a message. If a message is immediately available, then the datagram is written into the given buffers in a "scatter" fashion and the source and destination addresses (if available) read into the address buffer. If there is no message immediately available, this method will return 0.
| |
| receiveFrom | back to summary |
|---|---|
| public long receiveFrom(SocketAddressBuffer addressBuffer, ByteBuffer[] buffers, int offs, int len) throws IOException Receive a message. If a message is immediately available, then the datagram is written into the given buffers in a "scatter" fashion and the source and destination addresses (if available) read into the address buffer. If there is no message immediately available, this method will return 0.
| |