org.jSyncManager.API.Protocol
Class GenericPacket
java.lang.Object
|
+--org.jSyncManager.API.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:
- $Revision: 1.5 $
- Author:
- Brad BARCLAY <bbarclay@jsyncmanager.org>
Last modified by: $Author: yaztromo $ on $Date: 2003/04/23 00:22:49 $.
- 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 |
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.
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.
Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.