Overview  Package   Class  Tree  Index 

be.lassi.lanbox.udp
Class UdpPacket

java.lang.Object
  extended by be.lassi.lanbox.udp.UdpPacket
All Implemented Interfaces:
java.lang.Iterable<Message>

public class UdpPacket
extends java.lang.Object
implements java.lang.Iterable<Message>

An UDP packet received from the Lanbox.


Constructor Summary
UdpPacket(int sequenceNumber)
          Constructs a new UDP packet.
 
Method Summary
 void add(Message buffer)
          Adds a packet buffer.
 int getSequenceNumber()
          Gets the packet sequence number.
 java.util.Iterator<Message> iterator()
          Gets an iterator that iterates over the packet buffers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UdpPacket

public UdpPacket(int sequenceNumber)
Constructs a new UDP packet.

Parameters:
sequenceNumber - the packet sequence number
Method Detail

add

public void add(Message buffer)
Adds a packet buffer.

Parameters:
buffer - the packet buffer to be added

getSequenceNumber

public int getSequenceNumber()
Gets the packet sequence number.

Returns:
the packet sequence number

iterator

public java.util.Iterator<Message> iterator()
Gets an iterator that iterates over the packet buffers.

Specified by:
iterator in interface java.lang.Iterable<Message>

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2