inria.net.lrmp
Interface LrmpEventHandler
- All Known Implementing Classes:
- LRMPPacketSocket
- public interface LrmpEventHandler
this is the event interface that an application should implement to process data
and control events received from the LRMP session. The event handler is set through
LrmpProfile when creating an Lrmp object.
Method Summary |
void |
processData(LrmpPacket pack)
Processes a data packet received from LRMP. |
void |
processEvent(int event,
java.lang.Object data)
Processes an event received from LRMP. |
UNRECOVERABLE_SEQUENCE_ERROR
public static final int UNRECOVERABLE_SEQUENCE_ERROR
- the event type: unrecoverable reception error. This event is generated
when a part of data is missing in the received data stream, generally
due to serious network problems.
END_OF_SEQUENCE
public static final int END_OF_SEQUENCE
- the event type: end of sequence. This event is generated when a data sender
is lost or gone. It allows upper layer to clean-up incomplete data object.
processData
public void processData(LrmpPacket pack)
- Processes a data packet received from LRMP. This method is called each time
an in-order data packet is received. If some data is missing due to unrecoverable
reception error, an error event will be first notified.
- Parameters:
pack
- the received data packet.
processEvent
public void processEvent(int event,
java.lang.Object data)
- Processes an event received from LRMP. This method is called to notify
control events. The type of the data argument is LrmpErrorEvent for
UNRECOVERABLE_SEQUENCE_ERROR or LrmpEntity for END_OF_SEQUENCE.
- Parameters:
event
- the event type.data
- the event-dependent data.
JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.