org.jgroups.protocols
Class UDP_NIO.MyReceiver

java.lang.Object
  extended by org.jgroups.protocols.UDP_NIO.MyReceiver
Enclosing class:
UDP_NIO

public static class UDP_NIO.MyReceiver
extends java.lang.Object


Constructor Summary
UDP_NIO.MyReceiver()
           
 
Method Summary
 void receive(java.net.DatagramPacket packet)
          Called when data has been received on a socket.
 void setConnectorTable(UDP_NIO.ConnectorTable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDP_NIO.MyReceiver

public UDP_NIO.MyReceiver()
Method Detail

setConnectorTable

public void setConnectorTable(UDP_NIO.ConnectorTable t)

receive

public void receive(java.net.DatagramPacket packet)
Called when data has been received on a socket. When the callback returns, the buffer will be reused: therefore, if buf must be processed on a separate thread, it needs to be copied. This method might be called concurrently by multiple threads, so it has to be reentrant



Copyright ? 1998-2005 Bela Ban. All Rights Reserved.