|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Identifier
- MessageType
- public interface TransportLayerCallback<Identifier,MessageType>
Used to receive incoming messages/sockets.
Method Summary | |
---|---|
void |
incomingSocket(P2PSocket<Identifier> s)
Notification of a new socket. |
void |
messageReceived(Identifier i,
MessageType m,
java.util.Map<java.lang.String,java.lang.Object> options)
Called when a new message is received. |
Method Detail |
---|
void messageReceived(Identifier i, MessageType m, java.util.Map<java.lang.String,java.lang.Object> options) throws java.io.IOException
i
- The node it is coming fromm
- the messageoptions
- describe how the message arrived (udp/tcp, encrypted etc)
java.io.IOException
- if there is a problem decoding the messagevoid incomingSocket(P2PSocket<Identifier> s) throws java.io.IOException
s
- the incoming socket
java.io.IOException
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |