Package net.i2p.client.impl
Class I2PSimpleSession
java.lang.Object
net.i2p.client.impl.I2PSessionImpl
net.i2p.client.impl.I2PSessionImpl2
net.i2p.client.impl.I2PSimpleSession
- All Implemented Interfaces:
I2PSession,I2CPMessageReader.I2CPMessageEventListener
Create a new session for doing naming and bandwidth queries only. Do not create a Destination.
Don't create a producer. Do not send/receive messages to other Destinations.
Cannot handle multiple simultaneous queries atm.
Could be expanded to ask the router other things.
- Author:
- zzz
-
Nested Class Summary
Nested classes/interfaces inherited from class net.i2p.client.impl.I2PSessionImpl
I2PSessionImpl.AvailabilityNotifier, I2PSessionImpl.State -
Field Summary
Fields inherited from class net.i2p.client.impl.I2PSessionImpl2
_noEffort, _sendingStates, _sendMessageNonceFields inherited from class net.i2p.client.impl.I2PSessionImpl
_availabilityNotifier, _availableMessages, _bwLimits, _bwReceivedLock, _context, _handlerMap, _hostname, _leaseSet, _leaseSetWait, _log, _pendingLookups, _portNum, _producer, _queue, _reader, _sessionListener, _socket, _state, _stateLock, _transientSigningPublicKey, _writer, CACHE_MAX_SIZE, LISTEN_PORT, PROP_DOMAIN_SOCKETFields inherited from interface net.i2p.client.I2PSession
PORT_ANY, PORT_UNSPECIFIED, PROTO_ANY, PROTO_DATAGRAM, PROTO_DATAGRAM_RAW, PROTO_STREAMING, PROTO_UNSPECIFIED -
Constructor Summary
ConstructorsConstructorDescriptionI2PSimpleSession(I2PAppContext context, Properties options) Create a new session for doing naming and bandwidth queries only. -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Connect to the router and establish a session.voidupdateOptions(Properties options) Ignore, does nothingMethods inherited from class net.i2p.client.impl.I2PSessionImpl2
addMuxedSessionListener, addSessionListener, destroySession, getTimeout, receiveMessage, receiveStatus, reconnect, removeListener, sendBestEffort, sendBestEffort, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendNoEffort, shouldCompress, startVerifyUsageMethods inherited from class net.i2p.client.impl.I2PSessionImpl
addNewMessage, addSubsession, bandwidthLimits, bwReceived, changeState, clearCache, dateUpdated, destLookupFailed, destLookupFailed, destReceived, destReceived, destroySession, disconnect, disconnected, getContext, getDecryptionKey, getFastReceive, getHandlerMap, getLeaseSet, getMyDestination, getName, getOfflineExpiration, getOfflineSignature, getOptions, getPrefix, getPrivateKey, getProducer, getRouterVersion, getSessionId, getSubsessions, getTransientSigningPublicKey, isClosed, isOffline, lastActivity, lookupDest, lookupDest, lookupDest, lookupDest, lookupDest2, messageReceived, propogateError, readError, removeSubsession, reportAbuse, sendBlindingInfo, sendMessage, sendMessage_unchecked, setLeaseSet, setReduced, setSessionId, setSessionListener, shouldReconnect, supportsLS2, toString, updateActivity, verifyOpen, waitForDate
-
Constructor Details
-
I2PSimpleSession
Create a new session for doing naming and bandwidth queries only. Do not create a destination.- Throws:
I2PSessionException- if there is a problem
-
-
Method Details
-
connect
Connect to the router and establish a session. This call blocks until a session is granted. NOT threadsafe, do not call from multiple threads.- Specified by:
connectin interfaceI2PSession- Overrides:
connectin classI2PSessionImpl- Throws:
I2PSessionException- if there is a configuration error or the router is not reachable
-
updateOptions
Ignore, does nothing- Specified by:
updateOptionsin interfaceI2PSession- Overrides:
updateOptionsin classI2PSessionImpl- Parameters:
options- non-null- Since:
- 0.8.4
-