|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is implemented by a UDP/TCP unicast adapter or a UDP multicast adapter. * The method is called whenever there is a message arriving the adapter.
Method Summary | |
void |
messageArrivedFromAdapter(hypercast.I_Message msg)
Handles the incoming message (unicast, server, or multicast). |
hypercast.I_Message |
restoreMessage(byte[] receiveBuffer,
int[] validBytesStart,
int validBytesEnd)
Creates a message from bytes in a buffer. |
void |
timerExpired(java.lang.Object timerID)
Handles the arrival of a timer |
Method Detail |
public void messageArrivedFromAdapter(hypercast.I_Message msg)
java.lang.IllegalArgumentException
- if I_Message is of incorrect type.
(An incorrect type being one different than that returned by restoreMessage(). )public void timerExpired(java.lang.Object timerID)
java.lang.IllegalArgumentException
- if timerID is unexpected.public hypercast.I_Message restoreMessage(byte[] receiveBuffer, int[] validBytesStart, int validBytesEnd)
receiveBuffer
- the byte array buffer of a incoming streamvalidBytesStart
- the start index to create a message fromvalidBytesEnd
- the total length of bytes in this buffer
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |