org.sblim.slp.internal.msg
public class MsgHeader extends Object implements FunctionIDs
Field Summary | |
---|---|
static int | FRESH
FRESH |
static int | MCAST
MCAST |
static int | OVERFLOW
OVERFLOW |
static int | RAW_HDR_LEN
RAW_HDR_LEN |
static byte | VERSION
VERSION |
Constructor Summary | |
---|---|
MsgHeader(MsgHeader pHdr)
Ctor.
| |
MsgHeader(int pVersion, int pFunctionID, String pLangTag, boolean pOverflow, boolean pFresh, boolean pMCast, int pXID)
Ctor.
|
Method Summary | |
---|---|
boolean | fresh()
fresh
|
int | getFunctionID()
getFunctionID
|
String | getLangTag()
getLangTag
|
int | getSize()
getSize
|
int | getVersion()
getVersion
|
int | getXID() |
boolean | multicast()
multicast
|
boolean | overflows()
overflows
|
static MsgHeader | parse(SLPInputStream pInStr)
parse
|
byte[] | serialize(int pBodyLength, boolean pOverflow, boolean pSetMultiCastFlag, boolean pKeepXID)
serialize
|
void | setXID(int pXID)
The response have to contain the same XID of the request. |
Parameters: pHdr
Parameters: pVersion pFunctionID pLangTag pOverflow pFresh pMCast pXID
Returns: boolean
Returns: int
Returns: int
Returns: int
Returns: int
Returns: the XID which is parsed from the message. serialize() doesn't use this value, that serializes a new XID into the stream at every call (unless pKeepXID is set).
Returns: boolean
Returns: boolean
Parameters: pInStr
Returns: MsgHeader
Throws: ServiceLocationException IOException
Parameters: pBodyLength pOverflow pSetMultiCastFlag pKeepXID
Returns: byte[]
Parameters: pXID