hp.infrared
Class UltraPacket

java.lang.Object
  |
  +--hp.infrared.UltraPacket

public final class UltraPacket
extends java.lang.Object

This class implements an ultra packet which is broadcast in a connectionless manner using the ultra protocol.

See Also:
UltraSocket

Constructor Summary
UltraPacket(byte[] ibuf, int ilength)
          Constructs an ultra packet for holding packets of length ilength.
 
Method Summary
 byte[] getData()
          Returns the data to be sent or that was received.
 int getLength()
          Returns the length of the data to be sent or that was received.
 void setData(byte[] ibuf)
          Sets the data
 void setLength(int ilength)
          Sets the length
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UltraPacket

public UltraPacket(byte[] ibuf,
                   int ilength)
Constructs an ultra packet for holding packets of length ilength.
Parameters:
ibuf - the buffer
ilength - length of the buffer
Method Detail

getData

public byte[] getData()
Returns the data to be sent or that was received.

getLength

public int getLength()
Returns the length of the data to be sent or that was received.

setData

public void setData(byte[] ibuf)
Sets the data

setLength

public void setLength(int ilength)
Sets the length