- All Superinterfaces:
AutoCloseable, Closeable, SAMMessageSess
- All Known Implementing Classes:
MasterSession, SAMv3DatagramSession, SAMv3RawSession, SAMv3StreamSession
A V3 session.
Method Summary
All MethodsMethods inherited from interface SAMMessageSess
close, getDestination, getListenPort, getListenProtocol, lookupDest, sendBytes, sendBytes, startModifier and TypeMethodDescriptionvoidclose()Close a SAM message-based session.Get the SAM message-based session Destination.intGet the port for this session's listener.intGet the I2CP protocol for this session's listener.lookupDest(String name) Lookup a destination through the I2CP session.booleanSend bytes through a SAM message-based session.booleansendBytes(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, with per-message extended options.voidstart()Start a SAM message-based session.
Method Details
getNick
String getNick()The nickname the client registered this session under, which is the key it is filed and removed by in the SessionsDB.- Returns:
- the registered nickname