|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.client.I2CPMessageProducer
class I2CPMessageProducer
Produce the various messages the session needs to send to the router.
Field Summary | |
---|---|
(package private) static boolean |
END_TO_END_CRYPTO
Should we include the I2CP end to end crypto (which is in addition to any garlic crypto added by the router) |
Constructor Summary | |
---|---|
I2CPMessageProducer(I2PAppContext context)
|
Method Summary | |
---|---|
void |
connect(I2PSessionImpl session)
Send all the messages that a client needs to send to a router to establish a new session. |
void |
createLeaseSet(I2PSessionImpl session,
LeaseSet leaseSet,
SigningPrivateKey signingPriv,
PrivateKey priv)
Create a new signed leaseSet in response to a request to do so and send it to the router |
void |
disconnect(I2PSessionImpl session)
Send messages to the router destroying the session and disconnecting |
void |
reportAbuse(I2PSessionImpl session,
int msgId,
int severity)
Send an abuse message to the router |
void |
sendMessage(I2PSessionImpl session,
Destination dest,
long nonce,
byte[] payload,
SessionTag tag,
SessionKey key,
java.util.Set tags,
SessionKey newKey)
Package up and send the payload to the router for delivery |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final boolean END_TO_END_CRYPTO
Constructor Detail |
---|
public I2CPMessageProducer(I2PAppContext context)
Method Detail |
---|
public void connect(I2PSessionImpl session) throws I2PSessionException
I2PSessionException
public void disconnect(I2PSessionImpl session) throws I2PSessionException
I2PSessionException
public void sendMessage(I2PSessionImpl session, Destination dest, long nonce, byte[] payload, SessionTag tag, SessionKey key, java.util.Set tags, SessionKey newKey) throws I2PSessionException
I2PSessionException
public void reportAbuse(I2PSessionImpl session, int msgId, int severity) throws I2PSessionException
I2PSessionException
public void createLeaseSet(I2PSessionImpl session, LeaseSet leaseSet, SigningPrivateKey signingPriv, PrivateKey priv) throws I2PSessionException
I2PSessionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |