AutoCloseable, CloseableSessionMasterSession, SAMDatagramSession, SAMMessageSession, SAMRawSession, SAMStreamSession, SAMv2StreamSession, SAMv3DatagramSession, SAMv3RawSession, SAMv3StreamSessioninterface SAMMessageSess extends Closeable
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Close a SAM message-based session.
|
Destination |
getDestination() |
Get the SAM message-based session Destination.
|
int |
getListenPort() |
|
int |
getListenProtocol() |
|
boolean |
sendBytes(String dest,
byte[] data,
int proto,
int fromPort,
int toPort) |
Send bytes through a SAM message-based session.
|
boolean |
sendBytes(String dest,
byte[] data,
int proto,
int fromPort,
int toPort,
boolean sendLeaseSet,
int sendTags,
int tagThreshold,
int expiration) |
Send bytes through a SAM message-based session.
|
void |
start() |
Start a SAM message-based session.
|
void start()
void close()
close in interface AutoCloseableclose in interface CloseableDestination getDestination()
boolean sendBytes(String dest, byte[] data, int proto, int fromPort, int toPort) throws DataFormatException, I2PSessionException
dest - Destinationdata - Bytes to be sentDataFormatException - on unknown / bad destI2PSessionException - on serious error, probably session closedboolean sendBytes(String dest, byte[] data, int proto, int fromPort, int toPort, boolean sendLeaseSet, int sendTags, int tagThreshold, int expiration) throws DataFormatException, I2PSessionException
DataFormatExceptionI2PSessionExceptionint getListenProtocol()
int getListenPort()