interface SAMStreamReceiver| Modifier and Type | Method and Description |
|---|---|
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 |
void notifyStreamDisconnection(int id,
String result,
String msg)
throws IOExceptionid - Connection idresult - Disconnection reason ("OK" or something else)msg - Error message, if anyIOExceptionvoid notifyStreamIncomingConnection(int id,
Destination dest)
throws IOExceptionid - New connection iddest - DestinationIOExceptionvoid notifyStreamOutgoingConnection(int id,
String result,
String msg)
throws IOExceptionid - New connection idresult - message resultmsg - MessageIOExceptionvoid notifyStreamSendBufferFree(int id)
throws IOExceptionid - stream IDIOExceptionvoid receiveStreamBytes(int id,
ByteBuffer data)
throws IOExceptionid - Connection iddata - Byte array to be receivedIOExceptionvoid stopStreamReceiving()
void streamSendAnswer(int id,
String result,
String bufferState)
throws IOExceptionid - Stream IDresult - informationbufferState - state of the bufferIOException