class I2CPMessageProducer extends Object
| Constructor and Description |
|---|
I2CPMessageProducer(I2PAppContext context)I2CPMessageProducer. |
| Modifier and Type | Method and Description |
|---|---|
void | connect(I2PSessionImpl session)Connect to the server. |
void | createLeaseSet(I2PSessionImpl session,
LeaseSet leaseSet,
SigningPrivateKey signingPriv,
List<PrivateKey> privs)Send a CreateLeaseSet message. |
void | disconnect(I2PSessionImpl session)Disconnect from the server. |
void | reportAbuse(I2PSessionImpl session,
int msgId,
int severity)Send an abuse report. |
void | sendMessage(I2PSessionImpl session,
Destination dest,
long nonce,
byte[] payload,
long expires,
int flags)Send an I2CP message. |
void | sendMessage(I2PSessionImpl session,
Destination dest,
long nonce,
byte[] payload,
SendMessageOptions options)Send an I2CP message. |
void | sendMessage(I2PSessionImpl session,
Destination dest,
long nonce,
byte[] payload,
SessionTag tag,
SessionKey key,
Set<SessionTag> tags,
SessionKey newKey,
long expires)Send an I2CP message. |
void | updateBandwidth(I2PSessionImpl session)Update bandwidth limits. |
void | updateTunnels(I2PSessionImpl session,
int tunnels)Update the tunnel count and settings. |
public I2CPMessageProducer(I2PAppContext context)
public void connect(I2PSessionImpl session) throws I2PSessionException
I2PSessionExceptionpublic void createLeaseSet(I2PSessionImpl session, LeaseSet leaseSet, SigningPrivateKey signingPriv, List<PrivateKey> privs) throws I2PSessionException
I2PSessionExceptionpublic void disconnect(I2PSessionImpl session) throws I2PSessionException
I2PSessionExceptionpublic void reportAbuse(I2PSessionImpl session, int msgId, int severity) throws I2PSessionException
I2PSessionExceptionpublic void sendMessage(I2PSessionImpl session, Destination dest, long nonce, byte[] payload, long expires, int flags) throws I2PSessionException
I2PSessionExceptionpublic void sendMessage(I2PSessionImpl session, Destination dest, long nonce, byte[] payload, SendMessageOptions options) throws I2PSessionException
I2PSessionExceptionpublic void sendMessage(I2PSessionImpl session, Destination dest, long nonce, byte[] payload, SessionTag tag, SessionKey key, Set<SessionTag> tags, SessionKey newKey, long expires) throws I2PSessionException
I2PSessionExceptionpublic void updateBandwidth(I2PSessionImpl session)
public void updateTunnels(I2PSessionImpl session, int tunnels) throws I2PSessionException
I2PSessionException