net.i2p.sam
public class SAMv3RawSession extends SAMRawSession implements SAMv3Handler.Session, SAMRawReceiver
SAMMessageSession.SAMMessageSessionHandler
Modifier and Type | Field and Description |
---|---|
(package private) SocketAddress |
clientAddress |
(package private) SAMv3Handler |
handler |
(package private) String |
nick |
(package private) SAMv3Handler.DatagramServer |
server |
RAW_SIZE_MAX, recv
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
String nick
SAMv3Handler handler
SAMv3Handler.DatagramServer server
SocketAddress clientAddress
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