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

Quick Search    Search Deep

JSPservletPkg
Class ICPhandler.IcpHeader  view ICPhandler.IcpHeader download ICPhandler.IcpHeader.java

java.lang.Object
  extended byJSPservletPkg.ICPhandler.IcpHeader
Enclosing class:
ICPhandler

class ICPhandler.IcpHeader
extends java.lang.Object

ICP header.


Field Summary
(package private)  byte[] flags
          flags - options in RFC 2186 - u_num32 in C.
(package private)  byte[] ID
          Identifier of requester.
(package private)  long lastModified
          Timestamp.
(package private)  short length
          total length (bytes) - unsigned in C.
(package private)  byte opcode
          opcode - unsigned in C.
(package private)  byte[] pad
          pad - option data in RFC 2186 - u_num32 in C.
(package private)  byte[] payload
          payload.
(package private)  int reqnum
          req number (req'd for UDP) - u_num32 in C.
(package private)  byte[] shostid
          sender host id - u_num32 in C.
(package private)  byte version
          version number - unsigned in C.
 
Constructor Summary
(package private) ICPhandler.IcpHeader(byte[] msg)
          Constructor.
(package private) ICPhandler.IcpHeader(byte[] hostid, byte code, byte[] pl, byte[] ID)
          Constructor.
(package private) ICPhandler.IcpHeader(byte[] hostid, byte code, byte[] pl, byte[] ID, int seqnum, long lastModified)
          Constructor.
 
Method Summary
(package private)  byte[] getBytes()
          Returns serialized flow.
(package private)  int length()
          Returns serialized length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

opcode

byte opcode
opcode - unsigned in C.


version

byte version
version number - unsigned in C.


length

short length
total length (bytes) - unsigned in C.


reqnum

int reqnum
req number (req'd for UDP) - u_num32 in C.


flags

byte[] flags
flags - options in RFC 2186 - u_num32 in C.


pad

byte[] pad
pad - option data in RFC 2186 - u_num32 in C.


shostid

byte[] shostid
sender host id - u_num32 in C.


lastModified

long lastModified
Timestamp.


ID

byte[] ID
Identifier of requester.


payload

byte[] payload
payload.

Constructor Detail

ICPhandler.IcpHeader

ICPhandler.IcpHeader(byte[] hostid,
                     byte code,
                     byte[] pl,
                     byte[] ID,
                     int seqnum,
                     long lastModified)
Constructor. Used on server side.


ICPhandler.IcpHeader

ICPhandler.IcpHeader(byte[] hostid,
                     byte code,
                     byte[] pl,
                     byte[] ID)
Constructor. Used on client side.


ICPhandler.IcpHeader

ICPhandler.IcpHeader(byte[] msg)
Constructor. Populated from a buffer

Method Detail

length

int length()
Returns serialized length.


getBytes

byte[] getBytes()
Returns serialized flow.