JSPservletPkg
Class ICPhandler.IcpHeader

java.lang.Object
  |
  +--JSPservletPkg.ICPhandler.IcpHeader

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, registerNatives, 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.
Parameters:
hostid - sender host ID.
code - OP code.
pl - payload.
ID - ID of requester. Can be handler.ID or handler.ID/jarName.
seqnum - request number to use.
lastModified - last modification time.

ICPhandler.IcpHeader

ICPhandler.IcpHeader(byte[] hostid,
                     byte code,
                     byte[] pl,
                     byte[] ID)
Constructor. Used on client side.
Parameters:
hostid - sender host ID.
code - OP code.
pl - payload.
ID - ID of requester. Can be handler.ID or handler.ID/jarName.

ICPhandler.IcpHeader

ICPhandler.IcpHeader(byte[] msg)
Constructor. Populated from a buffer
Parameters:
msg - buffer.
Method Detail

length

int length()
Returns serialized length.

getBytes

byte[] getBytes()
Returns serialized flow.