FunctionIDspublic class MsgHeader extends java.lang.Object implements FunctionIDs
| Modifier and Type | Field | Description |
|---|---|---|
static int |
FRESH |
FRESH
|
static int |
MCAST |
MCAST
|
static int |
OVERFLOW |
OVERFLOW
|
static int |
RAW_HDR_LEN |
RAW_HDR_LEN
|
static byte |
VERSION |
VERSION
|
ATTR_RPLY, ATTR_RQST, DA_ADVERT, FIRST_ID, LAST_ID, SA_ADVERT, SRV_ACK, SRV_DEREG, SRV_REG, SRV_RPLY, SRV_RQST, SRV_TYPE_RPLY, SRV_TYPE_RQST| Constructor | Description |
|---|---|
MsgHeader(int pVersion,
int pFunctionID,
java.lang.String pLangTag,
boolean pOverflow,
boolean pFresh,
boolean pMCast,
int pXID) |
Ctor.
|
MsgHeader(MsgHeader pHdr) |
Ctor.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
fresh() |
fresh
|
int |
getFunctionID() |
getFunctionID
|
java.lang.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.
|
public static final byte VERSION
public static final int RAW_HDR_LEN
public static final int OVERFLOW
public static final int FRESH
public static final int MCAST
public MsgHeader(MsgHeader pHdr)
pHdr - public MsgHeader(int pVersion,
int pFunctionID,
java.lang.String pLangTag,
boolean pOverflow,
boolean pFresh,
boolean pMCast,
int pXID)
pVersion - pFunctionID - pLangTag - pOverflow - pFresh - pMCast - pXID - public static MsgHeader parse(SLPInputStream pInStr) throws ServiceLocationException, java.io.IOException
pInStr - ServiceLocationExceptionjava.io.IOExceptionpublic int getVersion()
public int getFunctionID()
public java.lang.String getLangTag()
public boolean overflows()
public boolean fresh()
public boolean multicast()
public int getXID()
public void setXID(int pXID)
pXID - public int getSize()
public byte[] serialize(int pBodyLength,
boolean pOverflow,
boolean pSetMultiCastFlag,
boolean pKeepXID)
pBodyLength - pOverflow - pSetMultiCastFlag - pKeepXID - Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.