protected class I2PSource.Listener extends Object implements I2PSessionMuxedListener
| Modifier | Constructor and Description |
|---|---|
protected |
Listener() |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnected(I2PSession arg0)
Notify the client that the session has been terminated.
|
void |
errorOccurred(I2PSession arg0,
String arg1,
Throwable arg2)
Notify the client that some error occurred.
|
void |
messageAvailable(I2PSession sess,
int id,
long size)
Will be called only if you register via
setSessionListener() or addSessionListener().
|
void |
messageAvailable(I2PSession session,
int id,
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 arg0,
int arg1)
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.
|
public void disconnected(I2PSession arg0)
I2PSessionMuxedListenerdisconnected in interface I2PSessionListenerdisconnected in interface I2PSessionMuxedListenerpublic void errorOccurred(I2PSession arg0, String arg1, Throwable arg2)
I2PSessionMuxedListenererrorOccurred in interface I2PSessionListenererrorOccurred in interface I2PSessionMuxedListenerarg2 - can be null? or not?public void messageAvailable(I2PSession sess, int id, long size)
I2PSessionMuxedListenermessageAvailable in interface I2PSessionListenermessageAvailable in interface I2PSessionMuxedListenersess - session to notifyid - message number availablesize - size of the message - why it's a long and not an int is a mysterypublic void messageAvailable(I2PSession session, int id, long size, int proto, int fromPort, int toPort)
I2PSessionMuxedListenermessageAvailable in interface I2PSessionMuxedListenersession - session to notifyid - 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 unspecifiedpublic void reportAbuse(I2PSession arg0, int arg1)
I2PSessionMuxedListenerreportAbuse in interface I2PSessionListenerreportAbuse in interface I2PSessionMuxedListenerarg0 - session to report abuse toarg1 - how bad the abuse is