|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jSyncManager.API.Protocol.SLP_Packet
SLP_Packet class. This class provides the class representation of an SLP packet.
Field Summary | |
---|---|
char |
bodySize
A field to hold the size of tha encapsulated data packet. |
byte |
checksum
A field to hold the packet header checksum. |
static byte |
CMP_PACKET
Denotes that the packet type is CMP Packet. |
char |
CRC
A field to hold the packet CRC value. |
byte[] |
data
A fiold to hold the encapsulated packet data. |
byte |
destinationSocket
A field to hold the destination socket. |
static byte |
FIRST_TRANSACTION_ID
Denotes the initial transaction ID for the first packet. |
byte |
packetType
A field to hold the packet type. |
static byte |
PAD_PACKET
Denotes that the packet type is a PAD Packet. |
static byte[] |
PREAMBLE
The SLP Packet Preamble. |
byte |
sourceSocket
A field to hold the source socket. |
static byte |
SYSTEM_PACKET
Denotes that the packet type is System Packet. |
static byte |
TEST_PACKET
Denotes that the packet type is a Test Packet. |
byte |
transactionID
A field to hold the packet transaction ID number. |
Constructor Summary | |
---|---|
SLP_Packet()
Constructs a new SLP packet. |
Method Summary | |
---|---|
(package private) char |
calcCRC()
Calculate the CRC value for this packet. |
(package private) byte |
calcHeaderChecksum()
Calculate the header checksum for this packet. |
(package private) boolean |
checkCRC()
Tests to see if the CRC value is correct. |
(package private) boolean |
checkHeaderChecksum()
Tests to see if the header checksum is valid. |
(package private) GenericPacket |
getGenericPacket()
Retreives the GenericPacket containing the data within this packet. |
(package private) byte[] |
packet2Bytes(boolean flag)
Converts this packet to a byte array suitable for transmission. |
java.lang.String |
toString()
Converts this packet to a human-readable segment of text. |
Methods inherited from class java.lang.Object |
---|
|
Field Detail |
public static final byte FIRST_TRANSACTION_ID
public static final byte SYSTEM_PACKET
public static final byte CMP_PACKET
public static final byte PAD_PACKET
public static final byte TEST_PACKET
public static final byte[] PREAMBLE
public byte destinationSocket
public byte sourceSocket
public byte packetType
public char bodySize
public byte transactionID
public byte checksum
public byte[] data
public char CRC
Constructor Detail |
public SLP_Packet()
Method Detail |
char calcCRC()
byte calcHeaderChecksum()
boolean checkCRC()
calcCRC()
boolean checkHeaderChecksum()
calcHeaderChecksum()
GenericPacket getGenericPacket()
byte[] packet2Bytes(boolean flag)
public java.lang.String toString()
toString
in class java.lang.Object
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |