|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SAMStreamReceiver
Interface for sending streaming data to a SAM client
| Method Summary | |
|---|---|
void |
notifyStreamDisconnection(int id,
String result,
String msg)
Notify that a connection has been closed FIXME: this interface should be cleaner |
void |
notifyStreamIncomingConnection(int id,
Destination dest)
Notify about a new incoming connection |
void |
notifyStreamOutgoingConnection(int id,
String result,
String msg)
Notify about a new outgoing connection |
void |
notifyStreamSendBufferFree(int id)
Notifies that the outwards buffer is free for writing |
void |
receiveStreamBytes(int id,
ByteBuffer data)
Transmit a byte array from I2P to a SAM client. |
void |
stopStreamReceiving()
Stop receiving data. |
void |
streamSendAnswer(int id,
String result,
String bufferState)
Sends the result of a stream send operation |
| Method Detail |
|---|
void streamSendAnswer(int id,
String result,
String bufferState)
throws IOException
id - Stream IDresult - informationbufferState - state of the buffer
IOException
void notifyStreamSendBufferFree(int id)
throws IOException
id - stream ID
IOException
void notifyStreamIncomingConnection(int id,
Destination dest)
throws IOException
id - New connection iddest - Destination
IOException
void notifyStreamOutgoingConnection(int id,
String result,
String msg)
throws IOException
id - New connection idresult - message resultmsg - Message
IOException
void receiveStreamBytes(int id,
ByteBuffer data)
throws IOException
id - Connection iddata - Byte array to be received
IOException
void notifyStreamDisconnection(int id,
String result,
String msg)
throws IOException
id - Connection idresult - Disconnection reason ("OK" or something else)msg - Error message, if any
IOExceptionvoid stopStreamReceiving()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||