|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mpisws.p2p.transport.util.BufferReader<Identifier>
Identifier - public class BufferReader<Identifier>
Reads a ByteBuffer to the socket then calls receiveResult().
| Constructor Summary | |
|---|---|
BufferReader(P2PSocket<Identifier> socket,
Continuation<java.nio.ByteBuffer,java.lang.Exception> continuation)
Constructor for variable/unknown sized BB, it reads the size off the stream |
|
BufferReader(P2PSocket<Identifier> socket,
Continuation<java.nio.ByteBuffer,java.lang.Exception> continuation,
int size)
Constructor for fixed size BB |
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferReader(P2PSocket<Identifier> socket,
Continuation<java.nio.ByteBuffer,java.lang.Exception> continuation)
socket - continuation -
public BufferReader(P2PSocket<Identifier> socket,
Continuation<java.nio.ByteBuffer,java.lang.Exception> continuation,
int size)
socket - continuation - size - the fixed size buffer to read| Method Detail |
|---|
public void receiveException(P2PSocket<Identifier> socket,
java.lang.Exception ioe)
P2PSocketReceiver
receiveException in interface P2PSocketReceiver<Identifier>
public void receiveSelectResult(P2PSocket<Identifier> socket,
boolean canRead,
boolean canWrite)
throws java.io.IOException
P2PSocketReceiver
receiveSelectResult in interface P2PSocketReceiver<Identifier>java.io.IOException
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||