Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.act365.net.udp
Class UDPReader  view UDPReader download UDPReader.java

java.lang.Object
  extended bycom.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
clone, equals, finalize, 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.