com.act365.net.udp
Class UDPReader

java.lang.Object
  |
  +--com.act365.net.udp.UDPReader

public class UDPReader
extends java.lang.Object

The class UDPReader reads UDP packets.


Constructor Summary
UDPReader()
           
 
Method Summary
static UDPMessage read(byte[] buffer, int offset, int length)
          read() constructs a UDPMessage object from a buffer.
static UDPMessage read(byte[] buffer, int offset, int length, boolean testchecksum, byte[] source, byte[] destination)
          read() constructs a UDPMessage object from a buffer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDPReader

public UDPReader()
Method Detail

read

public static UDPMessage read(byte[] buffer,
                              int offset,
                              int length)
                       throws java.io.IOException
read() constructs a UDPMessage object from a buffer.

read

public static UDPMessage read(byte[] buffer,
                              int offset,
                              int length,
                              boolean testchecksum,
                              byte[] source,
                              byte[] destination)
                       throws java.io.IOException
read() constructs a UDPMessage object from a buffer. When testchecksum is selected, the function assumes the IP header to start at offset=0.