|Modifier and Type||Method and Description|
Reports a recoverable error occurred on the socket.
Handles a packet received on the
void handleInput(java.nio.ByteBuffer buffer, java.net.InetSocketAddress address, AbstractAsyncDatagramSocket socket)
AsyncDatagramSocketobject and stored in
buffer. Note that
buffer's contents will be cleared upon return. The listener is required to either process the buffer completely or copy buffer before return.
buffer- contains a datagram packet. The current position is the packet start and the limit is the packet size.
address- packet was sent from this address.
socket- the packet was received on this datagram socket.
void handleError(java.lang.Throwable t, AbstractAsyncDatagramSocket socket)
socketis still open and able to send and receive packets. The socket configuration is not changed.
The error is probably
BufferWriter.fill(ByteBuffer) overflowing the
socket outbound buffer.
t- the exception associated with this error.
socket- the recoverable error occurred on this datagram socket.