net.sf.neem.impl
Interface DataListener
- All Known Implementing Classes:
- Gossip, Overlay
public interface DataListener
Low level handler for messages. This is called by connections
to deliver received data.
Method Summary |
void |
receive(java.nio.ByteBuffer[] msg,
Connection info,
short port)
Receive a message from from a connection. |
receive
void receive(java.nio.ByteBuffer[] msg,
Connection info,
short port)
- Receive a message from from a connection. The caller is
is prepared to handle a BufferUnderFlowException and will
close the connection. Implementations are thus advised to
start by unmarshalling the message. If it has been truncated
or is invalied, the resulting exception will thus do the
right thing
- Parameters:
msg
- The incoming message.info
- The source connection.port
- Destination port.
Copyright © 2005 University of Minho, Portugal. All Rights Reserved.