class SAMv3RawSession extends SAMRawSession implements SAMv3Handler.Session, SAMRawReceiver
SAMMessageSession.SAMMessageSessionHandler
RAW_SIZE_MAX, recv
_log
Constructor and Description |
---|
SAMv3RawSession(String nick)
Build a Raw Datagram Session according to information
registered with the given nickname
|
Modifier and Type | Method and Description |
---|---|
String |
getNick() |
void |
receiveRawBytes(byte[] data)
Send a byte array to a SAM client, without informations
regarding the sender.
|
void |
stopRawReceiving()
Stop receiving data.
|
messageReceived, sendBytes, shutDown
close, getDestination, getI2PSession, sendBytesThroughMessageSession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, sendBytes
public SAMv3RawSession(String nick) throws IOException, DataFormatException, I2PSessionException
nick
- nickname of the sessionIOException
DataFormatException
I2PSessionException
public String getNick()
getNick
in interface SAMv3Handler.Session
public void receiveRawBytes(byte[] data) throws IOException
SAMRawReceiver
receiveRawBytes
in interface SAMRawReceiver
data
- Byte array to be receivedIOException
public void stopRawReceiving()
SAMRawReceiver
stopRawReceiving
in interface SAMRawReceiver