|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jSyncManager.API.Protocol.PADP_Packet
PADP_Packet class. This class provides the class representation of a PADP packet.
Field Summary | |
---|---|
static byte |
ABORT
Denotes that this packets type is an Abort Packet. |
static byte |
ACK
Denotes that this packets type is an Acknowledgement Parket. |
byte[] |
data
A field to hold the data encapsulated within this packet. |
static byte |
DATA
Denotes that this packets type is Data Packet. |
byte |
destinationSocket
A field to hold the destination socket for this packet. |
static byte |
FIRST_FRAGMENT
This flag identifies this packet as the first fragment of a series. |
byte |
flags
A field to hold the flags for this packet. |
static byte |
LAST_FRAGMENT
This flag identifies this packet as being the last fragment in a series. |
static byte |
NACK
Denotes that this packets type is a Negative Acknowledgement Packet. |
static byte |
OUT_OF_MEMORY
This flag denotes an error condition on the handheld signifying that it is out of memory. |
char |
packetSize
A field to hold the size of this packet. |
byte |
packetType
A field to hold the packet type for this packet. |
boolean |
sent
A field to denote wether or not this packet has been sent. |
byte |
sourceSocket
A field to hold the source socket for this packet. |
static byte |
TICKLE
Denotes that this packets type is a Tickle Packet. |
byte |
transactionID
A field to hold the transaction ID for this packet. |
Constructor Summary | |
---|---|
(package private) |
PADP_Packet()
Construct a new, empty PAD Packet instance. |
(package private) |
PADP_Packet(byte type,
byte flags,
byte[] data,
byte destSocket,
byte srcSocket,
byte transID)
Construct a new PAD Packet instance with the specified information. |
Method Summary | |
---|---|
(package private) static PADP_Packet |
bytes2Packet(byte[] pkt)
Converts a packet byte array into an instance of PADP_Packet. |
(package private) byte[] |
packet2Bytes()
Converts this packet object into a byte array suitable for transmission. |
Methods inherited from class java.lang.Object |
---|
|
Field Detail |
public static final byte DATA
public static final byte ACK
public static final byte NACK
public static final byte TICKLE
public static final byte ABORT
public static final byte FIRST_FRAGMENT
public static final byte LAST_FRAGMENT
FIRST_FRAGMENT
public static final byte OUT_OF_MEMORY
public byte packetType
public byte flags
public char packetSize
public byte[] data
public byte destinationSocket
public byte sourceSocket
public byte transactionID
public boolean sent
Constructor Detail |
PADP_Packet()
PADP_Packet(byte type, byte flags, byte[] data, byte destSocket, byte srcSocket, byte transID)
type
- of type for this packet.flags
- the flags associated with this packet.data
- the data to be encapsulated within this packet.destSocket
- the destination socket for this packet.srcSocket
- the source socket for this packet.transID
- the Transaction ID for this packet.Method Detail |
static PADP_Packet bytes2Packet(byte[] pkt)
pkt
- a byte array containing a valid PAD packet.byte[] packet2Bytes()
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |