org.jgroups.protocols

Class UDP1_4.MyReceiver

Enclosing Class:
UDP1_4
Implemented Interfaces:
org.jgroups.protocols.Receiver

public static class UDP1_4.MyReceiver
extends java.lang.Object
implements org.jgroups.protocols.Receiver

Constructor Summary

MyReceiver()

Method Summary

void
receive(DatagramPacket packet)
Called when data has been received on a socket.
void
setConnectorTable(UDP1_4.ConnectorTable t)

Constructor Details

MyReceiver

public MyReceiver()

Method Details

receive

public void receive(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
Specified by:
receive in interface org.jgroups.protocols.Receiver
Parameters:
packet -

setConnectorTable

public void setConnectorTable(UDP1_4.ConnectorTable t)

Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.