![]() |
botsense
3.2.0
RoadNarrows Client-Server Proxied Services Framework
|
BotSense client application - bsProxy server-terminated core messages. More...
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "rnr/netmsgs.h"
#include "botsense/bsProxyMsgs.h"
Go to the source code of this file.
Macros | |
#define | EOFDEF {NULL, 0, NMFTypeNone, 0, } |
Functions | |
const NMMsgDef_T * | BsProxyLookupMsgDef (BsProxyMsgId_T eMsgId) |
Look up the message definition associated with the message id. More... | |
size_t | BsProxyLookupMsgMaxLen (BsProxyMsgId_T eMsgId) |
Look up the message maximum length associated with the message id. More... | |
int | BsProxyPackMsg (BsProxyMsgId_T eMsgId, void *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace) |
Pack a ITV message in big-endian byte order. More... | |
int | BsProxyUnpackMsg (BsProxyMsgId_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 | BsProxyRspOkFieldDefs [] |
static const NMMsgDef_T | BsProxyRspOkMsgDef |
static const NMFieldDef_T | BsProxyRspErrFieldDefs [] |
static const NMMsgDef_T | BsProxyRspErrMsgDef |
static const NMFieldDef_T | BsProxyReqLoopbackFieldDefs [] |
static const NMMsgDef_T | BsProxyReqLoopbackMsgDef |
static const NMFieldDef_T | BsProxyRspLoopbackFieldDefs [] |
static const NMMsgDef_T | BsProxyRspLoopbackMsgDef |
static const NMFieldDef_T | BsProxyReqSetLoggingFieldDefs [] |
static const NMMsgDef_T | BsProxyReqSetLoggingMsgDef |
static const NMFieldDef_T | BsProxyReqGetVersionFieldDefs [] |
static const NMMsgDef_T | BsProxyReqGetVersionMsgDef |
static const NMFieldDef_T | BsProxyRspGetVersionFieldDefs [] |
static const NMMsgDef_T | BsProxyRspGetVersionMsgDef |
static const NMFieldDef_T | BsProxyReqMsgTraceFieldDefs [] |
static const NMMsgDef_T | BsProxyReqMsgTraceMsgDef |
static const NMFieldDef_T | BsProxyReqDevOpenargbufFieldDef [] |
static const NMFieldDef_T | BsProxyReqDevOpenFieldDefs [] |
static const NMMsgDef_T | BsProxyReqDevOpenMsgDef |
static const NMFieldDef_T | BsProxyRspDevOpenFieldDefs [] |
static const NMMsgDef_T | BsProxyRspDevOpenMsgDef |
static const NMFieldDef_T | BsProxyReqDevCloseFieldDefs [] |
static const NMMsgDef_T | BsProxyReqDevCloseMsgDef |
static const NMFieldDef_T | BsProxyReqGetVConnListFieldDefs [] |
static const NMMsgDef_T | BsProxyReqGetVConnListMsgDef |
static const NMFieldDef_T | BsProxyRspGetVConnListvconnFieldDef [] |
static const NMFieldDef_T | BsProxyRspGetVConnListFieldDefs [] |
static const NMMsgDef_T | BsProxyRspGetVConnListMsgDef |
static const NMFieldDef_T | BsProxyReqGetVConnInfoFieldDefs [] |
static const NMMsgDef_T | BsProxyReqGetVConnInfoMsgDef |
static const NMFieldDef_T | BsProxyRspGetVConnInfoFieldDefs [] |
static const NMMsgDef_T | BsProxyRspGetVConnInfoMsgDef |
const NMMsgDef_T * | BsProxyMsgDefLookupTbl [] |
size_t | BsProxyMsgMaxLenLookupTbl [] |
BotSense client application - bsProxy server-terminated core messages.
Definition in file bsProxyMsgs.c.
#define EOFDEF {NULL, 0, NMFTypeNone, 0, } |
End of Field Definition entry.
Definition at line 29 of file bsProxyMsgs.c.
BsProxyReqDevClose Field Id Enumeration
Enumerator | |
---|---|
BsProxyReqDevCloseFIdReserved |
reserved field id |
BsProxyReqDevCloseFIdvconn |
vconn field id |
BsProxyReqDevCloseFIdNumOf |
number of fields |
Definition at line 524 of file bsProxyMsgs.c.
BsProxyReqDevOpen Field Id Enumeration
Definition at line 407 of file bsProxyMsgs.c.
BsProxyReqGetVConnInfo Field Id Enumeration
Enumerator | |
---|---|
BsProxyReqGetVConnInfoFIdReserved |
reserved field id |
BsProxyReqGetVConnInfoFIdvconn |
vconn field id |
BsProxyReqGetVConnInfoFIdNumOf |
number of fields |
Definition at line 665 of file bsProxyMsgs.c.
BsProxyReqGetVConnList Field Id Enumeration
Enumerator | |
---|---|
BsProxyReqGetVConnListFIdReserved |
reserved field id |
BsProxyReqGetVConnListFIdNumOf |
number of fields |
Definition at line 568 of file bsProxyMsgs.c.
BsProxyReqGetVersion Field Id Enumeration
Enumerator | |
---|---|
BsProxyReqGetVersionFIdReserved |
reserved field id |
BsProxyReqGetVersionFIdNumOf |
number of fields |
Definition at line 262 of file bsProxyMsgs.c.
BsProxyReqLoopback Field Id Enumeration
Enumerator | |
---|---|
BsProxyReqLoopbackFIdReserved |
reserved field id |
BsProxyReqLoopbackFIdcdata |
cdata field id |
BsProxyReqLoopbackFIdNumOf |
number of fields |
Definition at line 132 of file bsProxyMsgs.c.
BsProxyReqMsgTrace Field Id Enumeration
Enumerator | |
---|---|
BsProxyReqMsgTraceFIdReserved |
reserved field id |
BsProxyReqMsgTraceFIdvconn |
vconn field id |
BsProxyReqMsgTraceFIdtrace |
trace field id |
BsProxyReqMsgTraceFIdNumOf |
number of fields |
Definition at line 338 of file bsProxyMsgs.c.
BsProxyReqSetLogging Field Id Enumeration
Enumerator | |
---|---|
BsProxyReqSetLoggingFIdReserved |
reserved field id |
BsProxyReqSetLoggingFIdlevel |
level field id |
BsProxyReqSetLoggingFIdNumOf |
number of fields |
Definition at line 218 of file bsProxyMsgs.c.
BsProxyRspDevOpen Field Id Enumeration
Enumerator | |
---|---|
BsProxyRspDevOpenFIdReserved |
reserved field id |
BsProxyRspDevOpenFIdvconn |
vconn field id |
BsProxyRspDevOpenFIdNumOf |
number of fields |
Definition at line 480 of file bsProxyMsgs.c.
enum BsProxyRspErrFId_T |
BsProxyRspErr Field Id Enumeration
Enumerator | |
---|---|
BsProxyRspErrFIdReserved |
reserved field id |
BsProxyRspErrFIdecode |
ecode field id |
BsProxyRspErrFIdemsg |
emsg field id |
BsProxyRspErrFIdNumOf |
number of fields |
Definition at line 78 of file bsProxyMsgs.c.
BsProxyRspGetVConnInfo Field Id Enumeration
Definition at line 709 of file bsProxyMsgs.c.
BsProxyRspGetVConnList Field Id Enumeration
Enumerator | |
---|---|
BsProxyRspGetVConnListFIdReserved |
reserved field id |
BsProxyRspGetVConnListFIdvconn |
vconn field id |
BsProxyRspGetVConnListFIdNumOf |
number of fields |
Definition at line 619 of file bsProxyMsgs.c.
BsProxyRspGetVersion Field Id Enumeration
Enumerator | |
---|---|
BsProxyRspGetVersionFIdReserved |
reserved field id |
BsProxyRspGetVersionFIdversion |
version field id |
BsProxyRspGetVersionFIdNumOf |
number of fields |
Definition at line 295 of file bsProxyMsgs.c.
BsProxyRspLoopback Field Id Enumeration
Enumerator | |
---|---|
BsProxyRspLoopbackFIdReserved |
reserved field id |
BsProxyRspLoopbackFIdcdata |
cdata field id |
BsProxyRspLoopbackFIdNumOf |
number of fields |
Definition at line 175 of file bsProxyMsgs.c.
enum BsProxyRspOkFId_T |
BsProxyRspOk Field Id Enumeration
Enumerator | |
---|---|
BsProxyRspOkFIdReserved |
reserved field id |
BsProxyRspOkFIdNumOf |
number of fields |
Definition at line 45 of file bsProxyMsgs.c.
const NMMsgDef_T* BsProxyLookupMsgDef | ( | BsProxyMsgId_T | eMsgId | ) |
Look up the message definition associated with the message id.
eMsgId | Message Id. |
Definition at line 874 of file bsProxyMsgs.c.
References BsProxyMsgDefLookupTbl, and BsProxyMsgIdNumOf.
Referenced by bsClientGetMsgName(), BsProxyLogMsgHdr(), BsProxyPackMsg(), BsProxyUnpackMsg(), and ClientSendServerRsp().
size_t BsProxyLookupMsgMaxLen | ( | BsProxyMsgId_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 898 of file bsProxyMsgs.c.
References BsProxyMsgIdNumOf, and BsProxyMsgMaxLenLookupTbl.
int BsProxyPackMsg | ( | BsProxyMsgId_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 924 of file bsProxyMsgs.c.
References BsProxyLookupMsgDef().
Referenced by BsProxyPackReqDevClose(), BsProxyPackReqDevOpen(), BsProxyPackReqGetVConnInfo(), BsProxyPackReqLoopback(), BsProxyPackReqMsgTrace(), BsProxyPackReqSetLogging(), BsProxyPackRspDevOpen(), BsProxyPackRspErr(), BsProxyPackRspGetVConnInfo(), BsProxyPackRspGetVConnList(), BsProxyPackRspGetVersion(), BsProxyPackRspLoopback(), and ClientSendServerRsp().
int BsProxyUnpackMsg | ( | BsProxyMsgId_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 962 of file bsProxyMsgs.c.
References BsProxyLookupMsgDef().
Referenced by BsProxyUnpackReqDevClose(), BsProxyUnpackReqDevOpen(), BsProxyUnpackReqGetVConnInfo(), BsProxyUnpackReqLoopback(), BsProxyUnpackReqMsgTrace(), BsProxyUnpackReqSetLogging(), BsProxyUnpackRspDevOpen(), BsProxyUnpackRspErr(), BsProxyUnpackRspGetVConnInfo(), BsProxyUnpackRspGetVConnList(), BsProxyUnpackRspGetVersion(), and BsProxyUnpackRspLoopback().
const NMMsgDef_T* BsProxyMsgDefLookupTbl[] |
BsProxy Message Definition Look-Up Table. Indexed by BsProxyMsgId_T enum.
Definition at line 814 of file bsProxyMsgs.c.
Referenced by BsProxyLookupMsgDef().
size_t BsProxyMsgMaxLenLookupTbl[] |
BsProxy Message Maximum Size Look-Up Table. Indexed by BsProxyMsgId_T enum.
Definition at line 838 of file bsProxyMsgs.c.
Referenced by BsProxyLookupMsgMaxLen().
|
static |
BsProxyReqDevClose Field Definitions
Definition at line 534 of file bsProxyMsgs.c.
|
static |
BsProxyReqDevClose Message Definition
Definition at line 552 of file bsProxyMsgs.c.
|
static |
BsProxyReqDevOpenargbuf Field Definitions
Definition at line 389 of file bsProxyMsgs.c.
|
static |
BsProxyReqDevOpen Field Definitions
Definition at line 420 of file bsProxyMsgs.c.
|
static |
BsProxyReqDevOpen Message Definition
Definition at line 464 of file bsProxyMsgs.c.
|
static |
BsProxyReqGetVConnInfo Field Definitions
Definition at line 675 of file bsProxyMsgs.c.
|
static |
BsProxyReqGetVConnInfo Message Definition
Definition at line 693 of file bsProxyMsgs.c.
|
static |
BsProxyReqGetVConnList Field Definitions
Definition at line 577 of file bsProxyMsgs.c.
|
static |
BsProxyReqGetVConnList Message Definition
Definition at line 585 of file bsProxyMsgs.c.
|
static |
BsProxyReqGetVersion Field Definitions
Definition at line 271 of file bsProxyMsgs.c.
|
static |
BsProxyReqGetVersion Message Definition
Definition at line 279 of file bsProxyMsgs.c.
|
static |
BsProxyReqLoopback Field Definitions
Definition at line 142 of file bsProxyMsgs.c.
|
static |
BsProxyReqLoopback Message Definition
Definition at line 159 of file bsProxyMsgs.c.
|
static |
BsProxyReqMsgTrace Field Definitions
Definition at line 349 of file bsProxyMsgs.c.
|
static |
BsProxyReqMsgTrace Message Definition
Definition at line 373 of file bsProxyMsgs.c.
|
static |
BsProxyReqSetLogging Field Definitions
Definition at line 228 of file bsProxyMsgs.c.
|
static |
BsProxyReqSetLogging Message Definition
Definition at line 246 of file bsProxyMsgs.c.
|
static |
BsProxyRspDevOpen Field Definitions
Definition at line 490 of file bsProxyMsgs.c.
|
static |
BsProxyRspDevOpen Message Definition
Definition at line 508 of file bsProxyMsgs.c.
|
static |
BsProxyRspErr Field Definitions
Definition at line 89 of file bsProxyMsgs.c.
|
static |
BsProxyRspErr Message Definition
Definition at line 116 of file bsProxyMsgs.c.
|
static |
BsProxyRspGetVConnInfo Field Definitions
Definition at line 725 of file bsProxyMsgs.c.
|
static |
BsProxyRspGetVConnInfo Message Definition
Definition at line 798 of file bsProxyMsgs.c.
|
static |
BsProxyRspGetVConnList Field Definitions
Definition at line 629 of file bsProxyMsgs.c.
|
static |
BsProxyRspGetVConnList Message Definition
Definition at line 649 of file bsProxyMsgs.c.
|
static |
BsProxyRspGetVConnListvconn Field Definitions
Definition at line 601 of file bsProxyMsgs.c.
|
static |
BsProxyRspGetVersion Field Definitions
Definition at line 305 of file bsProxyMsgs.c.
|
static |
BsProxyRspGetVersion Message Definition
Definition at line 322 of file bsProxyMsgs.c.
|
static |
BsProxyRspLoopback Field Definitions
Definition at line 185 of file bsProxyMsgs.c.
|
static |
BsProxyRspLoopback Message Definition
Definition at line 202 of file bsProxyMsgs.c.
|
static |
BsProxyRspOk Field Definitions
Definition at line 54 of file bsProxyMsgs.c.
|
static |
BsProxyRspOk Message Definition
Definition at line 62 of file bsProxyMsgs.c.