|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.BOB.UDPIOthread
public class UDPIOthread
UDP IO on I2P FIX ME: Untested, and incomplete! I have no personal need to UDP yet, however alot of p2p apps pretty much demand it. The skeletal frame is here, just needs to be finished.
Constructor Summary | |
---|---|
UDPIOthread(NamedDB info,
Log _log,
java.net.Socket socket,
I2PSession _session)
Constructor |
Method Summary | |
---|---|
void |
disconnected(I2PSession session)
required by I2PSessionListener to notify of disconnect |
void |
errorOccurred(I2PSession session,
java.lang.String message,
java.lang.Throwable error)
required by I2PSessionListener to notify of error |
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)
required by I2PSessionListener to notify of abuse |
void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
UDPIOthread(NamedDB info, Log _log, java.net.Socket socket, I2PSession _session)
info
- _log
- socket
- _session
- Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void messageAvailable(I2PSession session, int msgId, long size)
I2PSessionListener
messageAvailable
in interface I2PSessionListener
session
- msgId
- size
- public void disconnected(I2PSession session)
I2PSessionListener
to notify of disconnect
disconnected
in interface I2PSessionListener
public void errorOccurred(I2PSession session, java.lang.String message, java.lang.Throwable error)
I2PSessionListener
to notify of error
errorOccurred
in interface I2PSessionListener
public void reportAbuse(I2PSession session, int severity)
I2PSessionListener
to notify of abuse
reportAbuse
in interface I2PSessionListener
session
- session to report abuse toseverity
- how bad the abuse is
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |