concast.base
Class UDPHeader

java.lang.Object
  |
  +--concast.base.UDPHeader

public class UDPHeader
extends java.lang.Object

Class to take UDP header from the incoming packet and put it back on the outgoing packets


Field Summary
static int FIXED_SIZE
          Size of the header
 
Constructor Summary
UDPHeader()
           
 
Method Summary
 byte[] getUDPHeader()
          Returns the UDP header.
 void processIncomingUDPDG(byte[] data)
          Retrieve the header
 void setCheckSum(int value)
          Put checksum, otherwise the receivers kernel just throws it off.
 int size()
          Returns size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIXED_SIZE

public static final int FIXED_SIZE
Size of the header
Constructor Detail

UDPHeader

public UDPHeader()
Method Detail

processIncomingUDPDG

public void processIncomingUDPDG(byte[] data)
Retrieve the header

getUDPHeader

public byte[] getUDPHeader()
Returns the UDP header. processIncomingUDPDG() has to be called first

size

public int size()
Returns size

setCheckSum

public void setCheckSum(int value)
Put checksum, otherwise the receivers kernel just throws it off.