Rice Pastry API

org.mpisws.p2p.transport
Interface P2PSocketReceiver<Identifier>

All Known Implementing Classes:
AppSocketReceiverWrapper, BufferReader, BufferWriter, EncryptedSocket, MagicNumberTransportLayer.VerifyHeaderReceiver, RecordSocket, SocketAdapter, SocketWrapperSocket, SourceRouteManagerP2PSocket, SSLSocketManager

public interface P2PSocketReceiver<Identifier>


Method Summary
 void receiveException(P2PSocket<Identifier> socket, java.lang.Exception ioe)
          Called when there is an error
 void receiveSelectResult(P2PSocket<Identifier> socket, boolean canRead, boolean canWrite)
          Called when a socket is available for read/write
 

Method Detail

receiveSelectResult

void receiveSelectResult(P2PSocket<Identifier> socket,
                         boolean canRead,
                         boolean canWrite)
                         throws java.io.IOException
Called when a socket is available for read/write

Throws:
java.io.IOException

receiveException

void receiveException(P2PSocket<Identifier> socket,
                      java.lang.Exception ioe)
Called when there is an error


Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection