I2PSession, I2CPMessageReader.I2CPMessageEventListenerpublic class I2PSimpleSession extends I2PSessionImpl2
I2PSessionImpl.AvailabilityNotifier, I2PSessionImpl.StatePORT_ANY, PORT_UNSPECIFIED, PROTO_ANY, PROTO_DATAGRAM, PROTO_DATAGRAM_RAW, PROTO_STREAMING, PROTO_UNSPECIFIED_availabilityNotifier, _availableMessages, _bwLimits, _bwReceivedLock, _context, _handlerMap, _hostname, _leaseSet, _leaseSetWait, _log, _pendingLookups, _portNum, _producer, _queue, _reader, _sessionListener, _socket, _state, _stateLock, _writer, CACHE_MAX_SIZE, LISTEN_PORT, PROP_DOMAIN_SOCKET, PROP_ENABLE_SSL, PROP_PW, PROP_USER_noEffort, _sendingStates, _sendMessageNonce| Constructor | Description |
|---|---|
I2PSimpleSession(I2PAppContext context,
Properties options) |
Create a new session for doing naming and bandwidth queries only.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
connect() |
Connect to the router and establish a session.
|
void |
updateOptions(Properties options) |
Ignore, does nothing
|
addNewMessage, addSubsession, bandwidthLimits, bwReceived, changeState, clearCache, dateUpdated, destLookupFailed, destLookupFailed, destReceived, destReceived, destroySession, disconnect, disconnected, getContext, getDecryptionKey, getFastReceive, getHandlerMap, getLeaseSet, getMyDestination, getOptions, getPrefix, getPrivateKey, getProducer, getSessionId, getSubsessions, isClosed, lastActivity, lookupDest, lookupDest, lookupDest, lookupDest, messageReceived, propogateError, readError, removeSubsession, reportAbuse, sendMessage, sendMessage_unchecked, setLeaseSet, setReduced, setSessionId, setSessionListener, shouldReconnect, toString, updateActivity, verifyOpen, waitForDateaddMuxedSessionListener, addSessionListener, destroySession, getTimeout, receiveMessage, receiveStatus, reconnect, removeListener, sendBestEffort, sendBestEffort, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendNoEffort, shouldCompress, startVerifyUsagepublic I2PSimpleSession(I2PAppContext context, Properties options) throws I2PSessionException
I2PSessionException - if there is a problempublic void connect()
throws I2PSessionException
connect in interface I2PSessionconnect in class I2PSessionImplI2PSessionException - if there is a configuration error or the router is
not reachablepublic void updateOptions(Properties options)
updateOptions in interface I2PSessionupdateOptions in class I2PSessionImploptions - non-null