|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.eyebolt.iplib.MessageHeader
Header prepended to every ipmanager BASE message
Field Summary | |
static int |
FLAG_BEACON
Description of the Field |
static int |
FLAG_MESSAGE_ACK
Description of the Field |
static int |
FLAG_MESSAGE_CANCEL
Description of the Field |
static int |
FLAG_MESSAGE_CRC
Description of the Field |
static int |
FLAG_MESSAGE_RETRY
Description of the Field |
static int |
FLAG_PING
Description of the Field |
(package private) int |
Flags
|
(package private) static int |
globalID
class variable for message id |
(package private) int |
HdrCRC
|
(package private) short |
HdrLen
|
static short |
MAX_SIZE
Description of the Field |
(package private) IPMessage |
message
|
static int |
MSG_SIGNATURE
Description of the Field |
static short |
MSG_VERSION
Description of the Field |
(package private) int |
MsgId
|
(package private) int |
MsgLen
|
(package private) int |
PktLen
|
(package private) short |
SeqNum
|
(package private) short |
Service
|
(package private) int |
Signature
|
static short |
SVC_DISCONNECT
Description of the Field |
static short |
SVC_NORMAL
Description of the Field |
static short |
SVC_VERIFYCONNECTION
Description of the Field |
(package private) short |
Version
|
Constructor Summary | |
MessageHeader()
Constructor for the MessageHeader object |
|
MessageHeader(IPMessage msg)
Constructor for the MessageHeader object |
|
MessageHeader(IPMessage msg,
byte[] buf)
Constructor for the MessageHeader object |
Method Summary | |
int |
flattenAt(byte[] buf)
Description of the Method |
static int |
getBaseSize()
Gets the Size attribute of the MessageHeader class |
(package private) int |
getId()
Fetch the message ID |
(package private) int |
getID()
Deprecated. use getId instead |
(package private) int |
getResponseId()
Fetch the message ResponseId |
(package private) short |
getServiceType()
Fetch the message service type |
int |
getSize()
Gets the Size attribute of the MessageHeader class |
(package private) boolean |
hasFlag(int flag)
Return true if a flag is set on this message header. |
(package private) void |
makeID()
Assign the header a new unique message ID |
(package private) void |
setFlag(int flag)
Set a flag value |
(package private) void |
setId(int id)
Sets the ID attribute of the MessageHeader object |
(package private) void |
setID(int id)
Deprecated. use setId instead |
(package private) void |
setResponseId(int id)
Sets the Id attribute of the HttpHeader object |
(package private) void |
setServiceType(short serviceId)
Sets the service attribute of the MessageHeader object |
java.lang.String |
toString()
Description of the Method |
(package private) int |
unFlattenFrom(byte[] buf)
Fill this header with the contents of the input buffer. |
void |
updateValues()
Description of the Method |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int MSG_SIGNATURE
public static final short MSG_VERSION
public static final int FLAG_PING
public static final int FLAG_BEACON
public static final int FLAG_MESSAGE_CRC
public static final int FLAG_MESSAGE_RETRY
public static final int FLAG_MESSAGE_ACK
public static final int FLAG_MESSAGE_CANCEL
public static final short SVC_NORMAL
public static final short SVC_DISCONNECT
public static final short SVC_VERIFYCONNECTION
public static final short MAX_SIZE
static int globalID
int Signature
short Version
short Service
short HdrLen
int PktLen
int MsgLen
int MsgId
short SeqNum
int Flags
int HdrCRC
IPMessage message
Constructor Detail |
public MessageHeader()
public MessageHeader(IPMessage msg)
msg
- Description of Parameterpublic MessageHeader(IPMessage msg, byte[] buf)
msg
- Description of Parameterbuf
- Description of ParameterMethod Detail |
public void updateValues()
public int flattenAt(byte[] buf)
buf
- Description of Parameterint unFlattenFrom(byte[] buf)
buf
- Description of Parameterpublic java.lang.String toString()
toString
in class java.lang.Object
public static int getBaseSize()
public int getSize()
void setFlag(int flag)
flag
- flag to setboolean hasFlag(int flag)
flag
- flag to checkvoid setID(int id)
id
- The new ID valueint getID()
void setId(int id)
id
- The new ID valueint getId()
void setResponseId(int id)
id
- The new ResponseId valueint getResponseId()
void setServiceType(short serviceId)
Service
- The new service valueshort getServiceType()
void makeID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |