Package net.i2p.BOB
Class UDPIOthread
- java.lang.Object
- 
- net.i2p.BOB.UDPIOthread
 
- 
- All Implemented Interfaces:
- Runnable,- I2PSessionListener
 
 @Deprecated public class UDPIOthread extends Object implements I2PSessionListener, Runnable Deprecated.incomplete, unusedUDP 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.- Author:
- sponge
 
- 
- 
Constructor SummaryConstructors Constructor Description UDPIOthread(NamedDB info, Log _log, Socket socket, I2PSession _session)Deprecated.Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddisconnected(I2PSession session)Deprecated.required byI2PSessionListenerto notify of disconnectvoiderrorOccurred(I2PSession session, String message, Throwable error)Deprecated.required byI2PSessionListenerto notify of errorvoidmessageAvailable(I2PSession session, int msgId, long size)Deprecated.Instruct the client that the given session has received a message with size # of bytes.voidreportAbuse(I2PSession session, int severity)Deprecated.required byI2PSessionListenerto notify of abusevoidrun()Deprecated.
 
- 
- 
- 
Constructor Detail- 
UDPIOthreadUDPIOthread(NamedDB info, Log _log, Socket socket, I2PSession _session) Deprecated.Constructor- Parameters:
- info-
- _log-
- socket-
- _session-
 
 
- 
 - 
Method Detail- 
messageAvailablepublic void messageAvailable(I2PSession session, int msgId, long size) Deprecated.Description copied from interface:I2PSessionListenerInstruct the client that the given session has received a message with size # of bytes. After this is called, the client should call receiveMessage(msgId). There is currently no method for the client to reject the message. If the client does not call receiveMessage() within a timeout period (currently 30 seconds), the session will delete the message and log an error.- Specified by:
- messageAvailablein interface- I2PSessionListener
- Parameters:
- session-
- msgId-
- size-
 
 - 
disconnectedpublic void disconnected(I2PSession session) Deprecated.required byI2PSessionListenerto notify of disconnect- Specified by:
- disconnectedin interface- I2PSessionListener
 
 - 
errorOccurredpublic void errorOccurred(I2PSession session, String message, Throwable error) Deprecated.required byI2PSessionListenerto notify of error- Specified by:
- errorOccurredin interface- I2PSessionListener
- error- can be null? or not?
 
 - 
reportAbusepublic void reportAbuse(I2PSession session, int severity) Deprecated.required byI2PSessionListenerto notify of abuse- Specified by:
- reportAbusein interface- I2PSessionListener
- Parameters:
- session- session to report abuse to
- severity- how bad the abuse is
 
 
- 
 
-