public interface I2PSessionMuxedListener extends I2PSessionListener
Modifier and Type | Method and Description |
---|---|
void |
disconnected(I2PSession session)
Notify the client that the session has been terminated.
|
void |
errorOccurred(I2PSession session,
String message,
Throwable error)
Notify the client that some error occurred.
|
void |
messageAvailable(I2PSession session,
int msgId,
long size)
Will be called only if you register via
setSessionListener() or addSessionListener().
|
void |
messageAvailable(I2PSession session,
int msgId,
long size,
int proto,
int fromport,
int toport)
Instruct the client that the given session has received a message
Will be called only if you register via addMuxedSessionListener().
|
void |
reportAbuse(I2PSession session,
int severity)
Instruct the client that the session specified seems to be under attack
and that the client may wish to move its destination to another router.
|
void messageAvailable(I2PSession session, int msgId, long size)
messageAvailable
in interface I2PSessionListener
session
- session to notifymsgId
- message number availablesize
- size of the message - why it's a long and not an int is a mysteryvoid messageAvailable(I2PSession session, int msgId, long size, int proto, int fromport, int toport)
session
- session to notifymsgId
- message number availablesize
- size of the message - why it's a long and not an int is a mysteryproto
- 1-254 or 0 for unspecifiedfromport
- 1-65535 or 0 for unspecifiedtoport
- 1-65535 or 0 for unspecifiedvoid reportAbuse(I2PSession session, int severity)
reportAbuse
in interface I2PSessionListener
session
- session to report abuse toseverity
- how bad the abuse isvoid disconnected(I2PSession session)
disconnected
in interface I2PSessionListener
void errorOccurred(I2PSession session, String message, Throwable error)
errorOccurred
in interface I2PSessionListener
error
- can be null? or not?