org.jSyncManager.API.Protocol

Class GenericPacket

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.
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.

Field Details

data

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

destination

public byte destination
The destination socket for this packet.

source

public byte source
The source socket for this packet.

transactionID

public byte transactionID
The transaction ID for this packet.