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
public class I2PSimpleSession
- extends I2PSessionImpl2
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
Fields 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, _writer, LISTEN_PORT, PROP_DOMAIN_SOCKET, PROP_ENABLE_SSL, PROP_PW, PROP_USER |
Methods 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, startVerifyUsage |
Methods 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, getOptions, getPrefix, getPrivateKey, getProducer, getSessionId, getSubsessions, isClosed, lastActivity, lookupDest, lookupDest, lookupDest, lookupDest, messageReceived, propogateError, readError, removeSubsession, reportAbuse, sendMessage_unchecked, sendMessage, setLeaseSet, setReduced, setSessionId, setSessionListener, shouldReconnect, toString, updateActivity, verifyOpen, waitForDate |
I2PSimpleSession
public I2PSimpleSession(I2PAppContext context,
Properties options)
throws I2PSessionException
- Create a new session for doing naming and bandwidth queries only. Do not create a destination.
- Throws:
I2PSessionException
- if there is a problem
connect
public void connect()
throws I2PSessionException
- 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:
connect
in interface I2PSession
- Overrides:
connect
in class I2PSessionImpl
- Throws:
I2PSessionException
- if there is a configuration error or the router is
not reachable
updateOptions
public void updateOptions(Properties options)
- Ignore, does nothing
- Specified by:
updateOptions
in interface I2PSession
- Overrides:
updateOptions
in class I2PSessionImpl
- Parameters:
options
- non-null- Since:
- 0.8.4