net.i2p.client
class I2PSimpleSession extends I2PSessionImpl2
I2PSessionImpl.AvailabilityNotifier, I2PSessionImpl.VerifyUsage
_availabilityNotifier, _availableMessages, _bwLimits, _bwReceivedLock, _closed, _closing, _context, _handlerMap, _hostname, _log, _opening, _out, _pendingLookups, _portNum, _producer, _queue, _reader, _sessionListener, _socket, _writer, LISTEN_PORT, PROP_ENABLE_SSL
PORT_ANY, PORT_UNSPECIFIED, PROTO_ANY, PROTO_DATAGRAM, PROTO_STREAMING, PROTO_UNSPECIFIED
Constructor and Description |
---|
I2PSimpleSession(I2PAppContext context,
Properties options)
Create a new session for doing naming and bandwidth queries only.
|
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connect to the router and establish a session.
|
void |
updateOptions(Properties options)
Ignore, does nothing
|
addMuxedSessionListener, addSessionListener, destroySession, getTimeout, receiveMessage, receiveStatus, reconnect, removeListener, sendBestEffort, sendBestEffort, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendNoEffort, shouldCompress
addNewMessage, bandwidthLimits, bwReceived, dateUpdated, destLookupFailed, destReceived, destroySession, disconnect, disconnected, getDecryptionKey, getLeaseSet, getMyDestination, getOpening, getOptions, getPrefix, getPrivateKey, getProducer, getSessionId, isClosed, lastActivity, loadConfig, lookupDest, lookupDest, messageReceived, propogateError, readError, reportAbuse, sendMessage, setLeaseSet, setOpening, setReduced, setSessionId, setSessionListener, shouldReconnect, toString, updateActivity
public I2PSimpleSession(I2PAppContext context, Properties options) throws I2PSessionException
I2PSessionException
- if there is a problempublic void connect() throws I2PSessionException
connect
in interface I2PSession
connect
in class I2PSessionImpl
I2PSessionException
- if there is a configuration error or the router is
not reachablepublic void updateOptions(Properties options)
updateOptions
in interface I2PSession
updateOptions
in class I2PSessionImpl
options
- non-null