|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.i2ptunnel.udp.I2PSource.Listener
protected class I2PSource.Listener
Constructor Summary | |
---|---|
protected |
I2PSource.Listener()
|
Method Summary | |
---|---|
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)
Instruct the client that the given session has received a message with size # of bytes. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected I2PSource.Listener()
Method Detail |
---|
public void messageAvailable(I2PSession sess, int id, long size)
I2PSessionListener
messageAvailable
in interface I2PSessionListener
sess
- session to notifyid
- message number availablesize
- size of the message - why it's a long and not an int is a mysterypublic void reportAbuse(I2PSession arg0, int arg1)
I2PSessionListener
reportAbuse
in interface I2PSessionListener
arg0
- session to report abuse toarg1
- how bad the abuse ispublic void disconnected(I2PSession arg0)
I2PSessionListener
disconnected
in interface I2PSessionListener
public void errorOccurred(I2PSession arg0, String arg1, Throwable arg2)
I2PSessionListener
errorOccurred
in interface I2PSessionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |