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

Quick Search    Search Deep

com.act365.net.ip
Class IP4Writer  view IP4Writer download IP4Writer.java

java.lang.Object
  extended bycom.act365.net.ip.IP4Writer

public class IP4Writer
extends java.lang.Object

IP4Writer writes IP4Message objects to a DatagramPacket. Fragmentation isn't supported - all messages are created with the DONT_FRAGMENT bit set and with offset set to 0. However, the identified is increased in order to identify packets uniquely.


Field Summary
(package private) static short identifier
           
 
Constructor Summary
IP4Writer()
           
 
Method Summary
static byte[] write(byte typeofservice, short timetolive, byte protocol, byte[] source, byte[] destination, byte[] data)
          Builds a full IP4Message object and writes it to a buffer.
(package private) static byte[] write(IP4Message message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identifier

static short identifier
Constructor Detail

IP4Writer

public IP4Writer()
Method Detail

write

static byte[] write(IP4Message message)

write

public static byte[] write(byte typeofservice,
                           short timetolive,
                           byte protocol,
                           byte[] source,
                           byte[] destination,
                           byte[] data)
Builds a full IP4Message object and writes it to a buffer. It is assumed that no options will be specified.