|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.client.I2PSessionImpl
net.i2p.client.I2PSessionImpl2
net.i2p.client.I2PSimpleSession
class I2PSimpleSession
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.
Nested Class Summary | |
---|---|
(package private) class |
I2PSimpleSession.SimpleMessageHandlerMap
Only map message handlers that we will use |
Nested classes/interfaces inherited from class net.i2p.client.I2PSessionImpl |
---|
I2PSessionImpl.AvailabilityNotifier, I2PSessionImpl.VerifyUsage |
Field Summary |
---|
Fields inherited from class net.i2p.client.I2PSessionImpl |
---|
_availabilityNotifier, _availableMessages, _closed, _closing, _context, _handlerMap, _hostname, _log, _opening, _out, _portNum, _producer, _reader, _sessionListener, _socket, _writer, LISTEN_PORT |
Fields inherited from interface net.i2p.client.I2PSession |
---|
PORT_ANY, PORT_UNSPECIFIED, PROTO_ANY, PROTO_DATAGRAM, PROTO_STREAMING, PROTO_UNSPECIFIED |
Constructor Summary | |
---|---|
I2PSimpleSession(I2PAppContext context,
java.util.Properties options)
Create a new session for doing naming and bandwidth queries only. |
Method Summary | |
---|---|
int[] |
bandwidthLimits()
Get the current bandwidth limits |
(package private) void |
bwReceived(int[] i)
|
void |
connect()
Connect to the router and establish a session. |
(package private) void |
destReceived(Destination d)
called by the message handler |
Destination |
lookupDest(Hash h)
Lookup up a Hash |
Methods inherited from class net.i2p.client.I2PSessionImpl2 |
---|
addMuxedSessionListener, addSessionListener, destroySession, getTimeout, receiveMessage, receiveStatus, reconnect, removeListener, sendBestEffort, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, shouldCompress |
Methods inherited from class net.i2p.client.I2PSessionImpl |
---|
addNewMessage, dateUpdated, destroySession, disconnect, disconnected, getDecryptionKey, getLeaseSet, getMyDestination, getOpening, getOptions, getPrefix, getPrivateKey, getProducer, getSessionId, isClosed, lastActivity, loadConfig, messageReceived, propogateError, readError, reportAbuse, sendMessage, setLeaseSet, setOpening, setReduced, setSessionId, setSessionListener, shouldReconnect, updateActivity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public I2PSimpleSession(I2PAppContext context, java.util.Properties options) throws I2PSessionException
I2PSessionException
- if there is a problemMethod Detail |
---|
public void connect() throws I2PSessionException
connect
in interface I2PSession
connect
in class I2PSessionImpl
I2PSessionException
- if there is a configuration error or the router is
not reachablevoid destReceived(Destination d)
void bwReceived(int[] i)
public Destination lookupDest(Hash h) throws I2PSessionException
I2PSession
lookupDest
in interface I2PSession
lookupDest
in class I2PSessionImpl
I2PSessionException
public int[] bandwidthLimits() throws I2PSessionException
I2PSession
bandwidthLimits
in interface I2PSession
bandwidthLimits
in class I2PSessionImpl
I2PSessionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |