rtpi.transport
Interface TransportRecipient

All Known Implementing Classes:
Rtpi, UnreliableUdpMulticast

public abstract interface TransportRecipient

This is the interface which needs to be implemented by a class that wants to be the recipient of transport packets.

Author:
Martin Mauve

Method Summary
 void connectionClosed()
          This method is called by the transport instance in case the connection to the server breaks and packet can not be sent or received anymore.
 void receiveTransportPacket(TransportPacket packet)
          This method is called by the transport instance in order to deliver a transport packet.
 

Method Detail

receiveTransportPacket

public void receiveTransportPacket(TransportPacket packet)
This method is called by the transport instance in order to deliver a transport packet.
Parameters:
packet - The transport packet.

connectionClosed

public void connectionClosed()
This method is called by the transport instance in case the connection to the server breaks and packet can not be sent or received anymore. The suggested behaviour is to call the method leaveGroup() of the transport instance and possibly trying to rejoin the group by calling joinGroup().
Parameters:
packet - The transport packet.