![]() |
botsense
3.2.0
RoadNarrows Client-Server Proxied Services Framework
|
BotSense bsProxy server - client /dev/null NetMsgs XML Definition. More...
Go to the source code of this file.
Classes | |
struct | BsNullReqWrite_T |
struct | BsNullRspWrite_T |
Macros | |
#define | BSNULL_REQWRITE_WRITEBUF_LEN (NMFVAL_LEN_MAX_VECTOR) |
Enumerations | |
enum | BsNullMsgId_T { BsNullMsgIdNone = 0, BsNullMsgIdReqWrite = 1, BsNullMsgIdRspWrite = 2, BsNullMsgIdNumOf = 3 } |
Functions | |
const NMMsgDef_T * | BsNullLookupMsgDef (BsNullMsgId_T eMsgId) |
Look up the message definition associated with the message id. More... | |
size_t | BsNullLookupMsgMaxLen (BsNullMsgId_T eMsgId) |
Look up the message maximum length associated with the message id. More... | |
int | BsNullPackMsg (BsNullMsgId_T eMsgId, void *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace) |
Pack a ITV message in big-endian byte order. More... | |
int | BsNullUnpackMsg (BsNullMsgId_T eMsgId, byte_t buf[], size_t uMsgLen, void *pStruct, bool_t bTrace) |
Unpack a ITV message in big-endian byte order. More... | |
INLINE_IN_H int | BsNullPackReqWrite (BsNullReqWrite_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace) |
Pack a BsNullReqWrite ITV message in big-endian byte order into the output buffer. More... | |
INLINE_IN_H int | BsNullUnpackReqWrite (byte_t buf[], size_t uMsgLen, BsNullReqWrite_T *pStruct, bool_t bTrace) |
Unpack a BsNullReqWrite ITV message in big-endian byte order from the input buffer. More... | |
INLINE_IN_H int | BsNullPackRspWrite (BsNullRspWrite_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace) |
Pack a BsNullRspWrite ITV message in big-endian byte order into the output buffer. More... | |
INLINE_IN_H int | BsNullUnpackRspWrite (byte_t buf[], size_t uMsgLen, BsNullRspWrite_T *pStruct, bool_t bTrace) |
Unpack a BsNullRspWrite ITV message in big-endian byte order from the input buffer. More... | |
Variables | |
const NMMsgDef_T * | BsNullMsgDefLookupTbl [] |
size_t | BsNullMsgMaxLenLookupTbl [] |
BotSense bsProxy server - client /dev/null NetMsgs XML Definition.
Definition in file bsNullMsgs.h.
#define BSNULL_REQWRITE_WRITEBUF_LEN (NMFVAL_LEN_MAX_VECTOR) |
ReqWrite writebuf maximum vector length
Definition at line 54 of file bsNullMsgs.h.
Referenced by bsNullReqWrite().
enum BsNullMsgId_T |
BsNull Message Id Enumeration
Enumerator | |
---|---|
BsNullMsgIdNone |
no message |
BsNullMsgIdReqWrite |
ReqWrite. |
BsNullMsgIdRspWrite |
RspWrite. |
BsNullMsgIdNumOf |
number of message ids |
Definition at line 35 of file bsNullMsgs.h.
const NMMsgDef_T* BsNullLookupMsgDef | ( | BsNullMsgId_T | eMsgId | ) |
Look up the message definition associated with the message id.
eMsgId | Message Id. |
Definition at line 186 of file bsNullMsgs.c.
References BsNullMsgDefLookupTbl, and BsNullMsgIdNumOf.
Referenced by bsNullGetMsgName(), BsNullPackMsg(), and BsNullUnpackMsg().
size_t BsNullLookupMsgMaxLen | ( | BsNullMsgId_T | eMsgId | ) |
Look up the message maximum length associated with the message id.
The maximum length is the total number of packed bytes possible for the given message. The message may be much shorter.
eMsgId | Message Id. |
Definition at line 210 of file bsNullMsgs.c.
References BsNullMsgIdNumOf, and BsNullMsgMaxLenLookupTbl.
int BsNullPackMsg | ( | BsNullMsgId_T | eMsgId, |
void * | pStruct, | ||
byte_t | buf[], | ||
size_t | bufSize, | ||
bool_t | bTrace | ||
) |
Pack a ITV message in big-endian byte order.
eMsgId | Message Id. | |
[in] | pStruct | Pointer to the associated, populated message structure. |
[out] | buf | Output message buffer. |
bufSize | Size of output buffer. | |
bTrace | Do [not] trace packing. |
Definition at line 236 of file bsNullMsgs.c.
References BsNullLookupMsgDef().
Referenced by BsNullPackReqWrite(), and BsNullPackRspWrite().
INLINE_IN_H int BsNullPackReqWrite | ( | BsNullReqWrite_T * | pStruct, |
byte_t | buf[], | ||
size_t | bufSize, | ||
bool_t | bTrace | ||
) |
Pack a BsNullReqWrite ITV message in big-endian byte order into the output buffer.
[in] | pStruct | Pointer to the associated, populated message structure. |
[out] | buf | Output message buffer. |
bufSize | Size of output buffer. | |
bTrace | Do [not] trace packing. |
Definition at line 138 of file bsNullMsgs.h.
References BsNullMsgIdReqWrite, and BsNullPackMsg().
Referenced by bsNullReqWrite().
INLINE_IN_H int BsNullPackRspWrite | ( | BsNullRspWrite_T * | pStruct, |
byte_t | buf[], | ||
size_t | bufSize, | ||
bool_t | bTrace | ||
) |
Pack a BsNullRspWrite ITV message in big-endian byte order into the output buffer.
[in] | pStruct | Pointer to the associated, populated message structure. |
[out] | buf | Output message buffer. |
bufSize | Size of output buffer. | |
bTrace | Do [not] trace packing. |
Definition at line 181 of file bsNullMsgs.h.
References BsNullMsgIdRspWrite, and BsNullPackMsg().
Referenced by bsModNullReqWrite().
int BsNullUnpackMsg | ( | BsNullMsgId_T | eMsgId, |
byte_t | buf[], | ||
size_t | uMsgLen, | ||
void * | pStruct, | ||
bool_t | bTrace | ||
) |
Unpack a ITV message in big-endian byte order.
eMsgId | Message Id. | |
[in] | buf | Input message buffer. |
uMsgLen | Length of message (bytes) in input buffer. | |
[out] | pStruct | Pointer to the associated message structure. |
bTrace | Do [not] trace packing. |
Definition at line 274 of file bsNullMsgs.c.
References BsNullLookupMsgDef().
Referenced by BsNullUnpackReqWrite(), and BsNullUnpackRspWrite().
INLINE_IN_H int BsNullUnpackReqWrite | ( | byte_t | buf[], |
size_t | uMsgLen, | ||
BsNullReqWrite_T * | pStruct, | ||
bool_t | bTrace | ||
) |
Unpack a BsNullReqWrite ITV message in big-endian byte order from the input buffer.
[in] | buf | Output message buffer. |
uMsgLen | Length of message (bytes) in input buffer. | |
[out] | pStruct | Pointer to the associated message structure. |
bTrace | Do [not] trace packing. |
Definition at line 159 of file bsNullMsgs.h.
References BsNullMsgIdReqWrite, and BsNullUnpackMsg().
Referenced by bsModNullReqWrite().
INLINE_IN_H int BsNullUnpackRspWrite | ( | byte_t | buf[], |
size_t | uMsgLen, | ||
BsNullRspWrite_T * | pStruct, | ||
bool_t | bTrace | ||
) |
Unpack a BsNullRspWrite ITV message in big-endian byte order from the input buffer.
[in] | buf | Output message buffer. |
uMsgLen | Length of message (bytes) in input buffer. | |
[out] | pStruct | Pointer to the associated message structure. |
bTrace | Do [not] trace packing. |
Definition at line 202 of file bsNullMsgs.h.
References BsNullMsgIdRspWrite, and BsNullUnpackMsg().
Referenced by bsNullReqWrite().
const NMMsgDef_T* BsNullMsgDefLookupTbl[] |
BsNull Message Definition Look-Up Table. Indexed by BsNullMsgId_T enum.
Definition at line 153 of file bsNullMsgs.c.
Referenced by BsNullLookupMsgDef().
size_t BsNullMsgMaxLenLookupTbl[] |
BsNull Message Maximum Size Look-Up Table. Indexed by BsNullMsgId_T enum.
Definition at line 164 of file bsNullMsgs.c.
Referenced by BsNullLookupMsgMaxLen().