com.ibm.manplato.Protocol
Class GenericPacket

java.lang.Object
  |
  +--com.ibm.manplato.Protocol.GenericPacket
All Implemented Interfaces:
java.io.Serializable

public class GenericPacket
extends java.lang.Object
implements java.io.Serializable

The GenericPacket class. This class represents a generic packet structure. It is used for passing packets between protocol layers for encoding and decoding.

Version:
$Rev$-$Date: 2001/03/15 16:55:32 $$State: Exp $
Author:
File Created By: Brad BARCLAY <bbarclay@ca.ibm.com>, Last Modified By: $Author: Yaztromo $
See Also:
Serialized Form

Field Summary
 byte[] data
          A byte array containing the packet data
 byte destination
          The destination socket for this packet.
 byte source
          The source socket for this packet.
 byte transactionID
          The transaction ID for this packet.
 
Constructor Summary
(package private) GenericPacket(byte[] data, byte sourceSocket, byte destSocket)
          Constructs a new GenericPacket
(package private) GenericPacket(byte[] data, byte sourceSocket, byte destSocket, byte transID)
          Constructs a new GenericPacket
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public byte[] data
A byte array containing the packet data

source

public byte source
The source socket for this packet.

destination

public byte destination
The destination socket for this packet.

transactionID

public byte transactionID
The transaction ID for this packet.
Constructor Detail

GenericPacket

GenericPacket(byte[] data,
              byte sourceSocket,
              byte destSocket)
Constructs a new GenericPacket
Parameters:
data - a byte array containing the packet data.
sourceSocket - the source socket for this packet.
destSocket - the destination socket for this packet.

GenericPacket

GenericPacket(byte[] data,
              byte sourceSocket,
              byte destSocket,
              byte transID)
Constructs a new GenericPacket
Parameters:
data - a byte array containing the packet data.
sourceSocket - the source socket for this packet.
destSocket - the destination socket for this packet.
transID - the transaction ID for this packet.