class LocalClientConnectionRunner extends ClientConnectionRunner
_context, _log, _manager, _reader| Constructor and Description |
|---|
LocalClientConnectionRunner(RouterContext context,
ClientManager manager,
Socket socket)
Create a new runner with the given queues
|
| Modifier and Type | Method and Description |
|---|---|
protected net.i2p.data.i2cp.I2CPMessageReader.I2CPMessageEventListener |
createListener()
Custom listener
|
net.i2p.data.Destination |
localLookup(net.i2p.data.Hash h)
So LocalClientMessageEventListener can lookup other local dests
|
(package private) void |
requestLeaseSet(net.i2p.data.Hash h,
net.i2p.data.LeaseSet set,
long expirationTime,
Job onCreateJob,
Job onFailedJob)
Just send the message directly,
don't instantiate a RequestLeaseSetJob
|
(package private) void |
updateMessageDeliveryStatus(net.i2p.data.Destination dest,
net.i2p.data.i2cp.MessageId id,
long messageNonce,
int status)
No job queue, so super NPEs
|
ackSendMessage, disconnectClient, disconnectClient, disconnected, distributeMessage, doSend, failLeaseRequest, getClientVersion, getConfig, getConfig, getDestHash, getDestHash, getDestination, getDestinations, getIsDead, getLeaseRequest, getLeaseSet, getNextMessageId, getPayload, getPrimaryConfig, getSessionId, getSessionIds, getSessionKeyManager, isDead, leaseSetCreated, receiveMessage, receiveMessage, registerEncryptedLS, removePayload, removeSession, reportAbuse, sessionEstablished, setClientVersion, setPayload, setSessionId, startRunning, stopRunning, writeMessagepublic LocalClientConnectionRunner(RouterContext context, ClientManager manager, Socket socket)
protected net.i2p.data.i2cp.I2CPMessageReader.I2CPMessageEventListener createListener()
createListener in class ClientConnectionRunnervoid requestLeaseSet(net.i2p.data.Hash h,
net.i2p.data.LeaseSet set,
long expirationTime,
Job onCreateJob,
Job onFailedJob)
requestLeaseSet in class ClientConnectionRunnerh - the Destination's hashset - LeaseSet with requested leases - this object must be updated to contain the
signed version (as well as any changed/added/removed Leases)
The LeaseSet contains Leases only, it is unsigned.
Must be unique for this hash, do not reuse for subsessions.expirationTime - ms to wait before failingonCreateJob - Job to run after the LeaseSet is authorized, null OKonFailedJob - Job to run after the timeout passes without receiving authorization, null OKvoid updateMessageDeliveryStatus(net.i2p.data.Destination dest,
net.i2p.data.i2cp.MessageId id,
long messageNonce,
int status)
updateMessageDeliveryStatus in class ClientConnectionRunnerdest - the clientid - the router's ID for this messagemessageNonce - the client's ID for this message, greater than zerostatus - see I2CP MessageStatusMessage for success/failure codespublic net.i2p.data.Destination localLookup(net.i2p.data.Hash h)