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()Get the port for this session's listener. |
int | getListenProtocol()Get the I2CP protocol for this session's listener. |
Destination | lookupDest(String name)Lookup a destination through the I2CP session. |
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()
Destination lookupDest(String name) throws I2PSessionException
I2PSessionExceptionboolean 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()