![]() |
botsense
3.2.0
RoadNarrows Client-Server Proxied Services Framework
|
BotSense bsProxy server - client /dev/null NetMsgs XML Definition. More...
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "rnr/netmsgs.h"
#include "botsense/bsNullMsgs.h"
Go to the source code of this file.
Macros | |
#define | EOFDEF {NULL, 0, NMFTypeNone, 0, } |
Enumerations | |
enum | BsNullReqWriteFId_T { BsNullReqWriteFIdReserved = 0, BsNullReqWriteFIdwritebuf = 1, BsNullReqWriteFIdNumOf = 2 } |
enum | BsNullRspWriteFId_T { BsNullRspWriteFIdReserved = 0, BsNullRspWriteFIdbyteswritten = 1, BsNullRspWriteFIdNumOf = 2 } |
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... | |
Variables | |
static const NMFieldDef_T | BsNullReqWritewritebufFieldDef [] |
static const NMFieldDef_T | BsNullReqWriteFieldDefs [] |
static const NMMsgDef_T | BsNullReqWriteMsgDef |
static const NMFieldDef_T | BsNullRspWriteFieldDefs [] |
static const NMMsgDef_T | BsNullRspWriteMsgDef |
const NMMsgDef_T * | BsNullMsgDefLookupTbl [] |
size_t | BsNullMsgMaxLenLookupTbl [] |
BotSense bsProxy server - client /dev/null NetMsgs XML Definition.
Definition in file bsNullMsgs.c.
#define EOFDEF {NULL, 0, NMFTypeNone, 0, } |
End of Field Definition entry.
Definition at line 29 of file bsNullMsgs.c.
enum BsNullReqWriteFId_T |
BsNullReqWrite Field Id Enumeration
Enumerator | |
---|---|
BsNullReqWriteFIdReserved |
reserved field id |
BsNullReqWriteFIdwritebuf |
writebuf field id |
BsNullReqWriteFIdNumOf |
number of fields |
Definition at line 63 of file bsNullMsgs.c.
enum BsNullRspWriteFId_T |
BsNullRspWrite Field Id Enumeration
Enumerator | |
---|---|
BsNullRspWriteFIdReserved |
reserved field id |
BsNullRspWriteFIdbyteswritten |
byteswritten field id |
BsNullRspWriteFIdNumOf |
number of fields |
Definition at line 109 of file bsNullMsgs.c.
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().
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().
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().
|
static |
BsNullReqWrite Field Definitions
Definition at line 73 of file bsNullMsgs.c.
|
static |
BsNullReqWrite Message Definition
Definition at line 93 of file bsNullMsgs.c.
|
static |
BsNullReqWritewritebuf Field Definitions
Definition at line 45 of file bsNullMsgs.c.
|
static |
BsNullRspWrite Field Definitions
Definition at line 119 of file bsNullMsgs.c.
|
static |
BsNullRspWrite Message Definition
Definition at line 137 of file bsNullMsgs.c.