public interface 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)Instruct the client that the given session has received a message with
size # of bytes. |
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 disconnected(I2PSession session)
session - the sessionvoid errorOccurred(I2PSession session, String message, Throwable error)
session - the sessionmessage - the error messageerror - can be null? or not?void messageAvailable(I2PSession session, int msgId, long size)
session - session to notifymsgId - message number availablesize - size of the message - why it's a long and not an int is a mysteryvoid reportAbuse(I2PSession session, int severity)
session - session to report abuse toseverity - how bad the abuse is