interface SAMMessageSess extends Closeable
| Modifier and Type | Method and 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 close()
close in interface AutoCloseableclose in interface CloseableDestination getDestination()
int getListenPort()
int getListenProtocol()
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
void start()