21 #include "rnr/rnrconfig.h" 23 #include "rnr/netmsgs.h" 29 #define EOFDEF {NULL, 0, NMFTypeNone, 0, } 64 .m_sMsgName =
"BsProxyRspOk",
66 .m_uCount = (size_t)(0),
94 .m_eFType = NMFTypeU8,
96 .m_this.m_u8.m_bits = (byte_t)(0),
97 .m_this.m_u8.m_valMin = (byte_t)(0),
98 .m_this.m_u8.m_valMax = (byte_t)(0),
99 .m_this.m_u8.m_valConst = (byte_t)(0),
104 .m_eFType = NMFTypeString,
106 .m_this.m_string.m_uMaxCount
108 .m_this.m_string.m_sConst = (
char *)(NULL),
118 .m_sMsgName =
"BsProxyRspErr",
120 .m_uCount = (size_t)(2),
147 .m_eFType = NMFTypeString,
149 .m_this.m_string.m_uMaxCount
151 .m_this.m_string.m_sConst = (
char *)(NULL),
161 .m_sMsgName =
"BsProxyReqLoopback",
163 .m_uCount = (size_t)(1),
190 .m_eFType = NMFTypeString,
192 .m_this.m_string.m_uMaxCount
194 .m_this.m_string.m_sConst = (
char *)(NULL),
204 .m_sMsgName =
"BsProxyRspLoopback",
206 .m_uCount = (size_t)(1),
233 .m_eFType = NMFTypeS32,
235 .m_this.m_u32.m_bits = (byte_t)(0),
236 .m_this.m_u32.m_valMin = (uint_t)(0),
237 .m_this.m_u32.m_valMax = (uint_t)(0),
238 .m_this.m_u32.m_valConst = (uint_t)(0),
248 .m_sMsgName =
"BsProxyReqSetLogging",
250 .m_uCount = (size_t)(1),
281 .m_sMsgName =
"BsProxyReqGetVersion",
283 .m_uCount = (size_t)(0),
308 .m_sFName =
"version",
310 .m_eFType = NMFTypeString,
312 .m_this.m_string.m_uMaxCount
314 .m_this.m_string.m_sConst = (
char *)(NULL),
324 .m_sMsgName =
"BsProxyRspGetVersion",
326 .m_uCount = (size_t)(1),
354 .m_eFType = NMFTypeU8,
356 .m_this.m_u8.m_bits = (byte_t)(0),
357 .m_this.m_u8.m_valMin = (byte_t)(0),
358 .m_this.m_u8.m_valMax = (byte_t)(0),
359 .m_this.m_u8.m_valConst = (byte_t)(0),
364 .m_eFType = NMFTypeBool,
375 .m_sMsgName =
"BsProxyReqMsgTrace",
377 .m_uCount = (size_t)(2),
392 .m_sFName =
"argbuf",
394 .m_eFType = NMFTypeU8,
395 .m_uOffset = (size_t)0,
396 .m_this.m_u8.m_bits = (byte_t)(0),
397 .m_this.m_u8.m_valMin = (byte_t)(0),
398 .m_this.m_u8.m_valMax = (byte_t)(0),
399 .m_this.m_u8.m_valConst = (byte_t)(0),
425 .m_eFType = NMFTypeBool,
429 .m_sFName =
"devname",
431 .m_eFType = NMFTypeString,
433 .m_this.m_string.m_uMaxCount
435 .m_this.m_string.m_sConst = (
char *)(NULL),
438 .m_sFName =
"modname",
440 .m_eFType = NMFTypeString,
442 .m_this.m_string.m_uMaxCount
444 .m_this.m_string.m_sConst = (
char *)(NULL),
447 .m_sFName =
"argbuf",
449 .m_eFType = NMFTypeVector,
451 .m_this.m_vector.m_uMaxCount
453 .m_this.m_vector.m_uElemSize
455 .m_this.m_vector.m_pThisElem
466 .m_sMsgName =
"BsProxyReqDevOpen",
468 .m_uCount = (size_t)(4),
495 .m_eFType = NMFTypeU8,
497 .m_this.m_u8.m_bits = (byte_t)(0),
498 .m_this.m_u8.m_valMin = (byte_t)(0),
499 .m_this.m_u8.m_valMax = (byte_t)(0),
500 .m_this.m_u8.m_valConst = (byte_t)(0),
510 .m_sMsgName =
"BsProxyRspDevOpen",
512 .m_uCount = (size_t)(1),
539 .m_eFType = NMFTypeU8,
541 .m_this.m_u8.m_bits = (byte_t)(0),
542 .m_this.m_u8.m_valMin = (byte_t)(0),
543 .m_this.m_u8.m_valMax = (byte_t)(0),
544 .m_this.m_u8.m_valConst = (byte_t)(0),
554 .m_sMsgName =
"BsProxyReqDevClose",
556 .m_uCount = (size_t)(1),
587 .m_sMsgName =
"BsProxyReqGetVConnList",
589 .m_uCount = (size_t)(0),
606 .m_eFType = NMFTypeU8,
607 .m_uOffset = (size_t)0,
608 .m_this.m_u8.m_bits = (byte_t)(0),
609 .m_this.m_u8.m_valMin = (byte_t)(0),
610 .m_this.m_u8.m_valMax = (byte_t)(0),
611 .m_this.m_u8.m_valConst = (byte_t)(0),
634 .m_eFType = NMFTypeVector,
636 .m_this.m_vector.m_uMaxCount
638 .m_this.m_vector.m_uElemSize
640 .m_this.m_vector.m_pThisElem
651 .m_sMsgName =
"BsProxyRspGetVConnList",
653 .m_uCount = (size_t)(1),
680 .m_eFType = NMFTypeU8,
682 .m_this.m_u8.m_bits = (byte_t)(0),
683 .m_this.m_u8.m_valMin = (byte_t)(0),
684 .m_this.m_u8.m_valMax = (byte_t)(0),
685 .m_this.m_u8.m_valConst = (byte_t)(0),
695 .m_sMsgName =
"BsProxyReqGetVConnInfo",
697 .m_uCount = (size_t)(1),
730 .m_eFType = NMFTypeU8,
732 .m_this.m_u8.m_bits = (byte_t)(0),
733 .m_this.m_u8.m_valMin = (byte_t)(0),
734 .m_this.m_u8.m_valMax = (byte_t)(0),
735 .m_this.m_u8.m_valConst = (byte_t)(0),
740 .m_eFType = NMFTypeS32,
742 .m_this.m_u32.m_bits = (byte_t)(0),
743 .m_this.m_u32.m_valMin = (uint_t)(0),
744 .m_this.m_u32.m_valMax = (uint_t)(0),
745 .m_this.m_u32.m_valConst = (uint_t)(0),
748 .m_sFName =
"client",
750 .m_eFType = NMFTypeString,
752 .m_this.m_string.m_uMaxCount
754 .m_this.m_string.m_sConst = (
char *)(NULL),
757 .m_sFName =
"devuri",
759 .m_eFType = NMFTypeString,
761 .m_this.m_string.m_uMaxCount
763 .m_this.m_string.m_sConst = (
char *)(NULL),
766 .m_sFName =
"moduri",
768 .m_eFType = NMFTypeString,
770 .m_this.m_string.m_uMaxCount
772 .m_this.m_string.m_sConst = (
char *)(NULL),
775 .m_sFName =
"modver",
777 .m_eFType = NMFTypeString,
779 .m_this.m_string.m_uMaxCount
781 .m_this.m_string.m_sConst = (
char *)(NULL),
784 .m_sFName =
"moddate",
786 .m_eFType = NMFTypeString,
788 .m_this.m_string.m_uMaxCount
790 .m_this.m_string.m_sConst = (
char *)(NULL),
800 .m_sMsgName =
"BsProxyRspGetVConnInfo",
802 .m_uCount = (size_t)(7),
930 const NMMsgDef_T *pMsgDef;
934 LOGERROR(
"%s(ecode=%d): msgid=%u.",
935 nmStrError(NM_ECODE_MSGID), NM_ECODE_MSGID, eMsgId);
936 return -NM_ECODE_MSGID;
941 return nmPackITVMsgDebug(pMsgDef, pStruct, buf, bufSize, NMEndianBig);
945 return nmPackITVMsg(pMsgDef, pStruct, buf, bufSize, NMEndianBig);
968 const NMMsgDef_T *pMsgDef;
972 LOGERROR(
"%s(ecode=%d): msgid=%u.",
973 nmStrError(NM_ECODE_MSGID), NM_ECODE_MSGID, eMsgId);
974 return -NM_ECODE_MSGID;
979 return nmUnpackITVMsgDebug(pMsgDef, buf, uMsgLen, pStruct, NMEndianBig);
983 return nmUnpackITVMsg(pMsgDef, buf, uMsgLen, pStruct, NMEndianBig);
static const NMMsgDef_T BsProxyRspGetVersionMsgDef
#define BSPROXY_RSPGETVCONNINFO_MODURI_LEN
static const NMFieldDef_T BsProxyRspGetVConnInfoFieldDefs[]
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.
static const NMFieldDef_T BsProxyReqGetVersionFieldDefs[]
static const NMFieldDef_T BsProxyReqLoopbackFieldDefs[]
BsProxyRspGetVConnInfoFId_T
BotSense client application - bsProxy server-terminated core messages.
#define BSPROXY_REQDEVOPEN_MODNAME_LEN
static const NMFieldDef_T BsProxyRspOkFieldDefs[]
#define BSPROXY_RSPGETVCONNINFO_CLIENT_LEN
static const NMMsgDef_T BsProxyRspGetVConnListMsgDef
#define BSPROXY_RSPGETVERSION_VERSION_LEN
static const NMMsgDef_T BsProxyReqDevOpenMsgDef
static const NMMsgDef_T BsProxyReqDevCloseMsgDef
size_t BsProxyLookupMsgMaxLen(BsProxyMsgId_T eMsgId)
Look up the message maximum length associated with the message id.
static const NMMsgDef_T BsProxyReqGetVConnInfoMsgDef
static const NMMsgDef_T BsProxyRspLoopbackMsgDef
static const NMFieldDef_T BsProxyRspGetVConnListFieldDefs[]
static const NMMsgDef_T BsProxyReqGetVersionMsgDef
static const NMMsgDef_T BsProxyReqLoopbackMsgDef
BsProxyRspGetVersionFId_T
static const NMFieldDef_T BsProxyReqSetLoggingFieldDefs[]
BsProxyReqGetVConnInfoFId_T
static const NMFieldDef_T BsProxyRspLoopbackFieldDefs[]
#define BSPROXY_RSPGETVCONNINFO_DEVURI_LEN
static const NMMsgDef_T BsProxyRspOkMsgDef
const NMMsgDef_T * BsProxyMsgDefLookupTbl[]
#define BSPROXY_REQDEVOPEN_DEVNAME_LEN
BsProxyReqGetVConnListFId_T
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.
static const NMFieldDef_T BsProxyReqMsgTraceFieldDefs[]
static const NMMsgDef_T BsProxyReqMsgTraceMsgDef
BsProxyReqSetLoggingFId_T
static const NMMsgDef_T BsProxyReqSetLoggingMsgDef
static const NMMsgDef_T BsProxyRspGetVConnInfoMsgDef
static const NMFieldDef_T BsProxyReqDevCloseFieldDefs[]
static const NMMsgDef_T BsProxyRspErrMsgDef
BsProxyReqGetVersionFId_T
size_t BsProxyMsgMaxLenLookupTbl[]
static const NMMsgDef_T BsProxyRspDevOpenMsgDef
static const NMFieldDef_T BsProxyReqDevOpenFieldDefs[]
static const NMFieldDef_T BsProxyRspDevOpenFieldDefs[]
static const NMFieldDef_T BsProxyReqGetVConnInfoFieldDefs[]
#define BSPROXY_RSPGETVCONNINFO_MODDATE_LEN
#define BSPROXY_VCONN_CLIENT_MAX
max number of virtual conn/client
static const NMFieldDef_T BsProxyReqGetVConnListFieldDefs[]
#define BSPROXY_RSPLOOPBACK_CDATA_LEN
static const NMFieldDef_T BsProxyReqDevOpenargbufFieldDef[]
static const NMFieldDef_T BsProxyRspGetVersionFieldDefs[]
const NMMsgDef_T * BsProxyLookupMsgDef(BsProxyMsgId_T eMsgId)
Look up the message definition associated with the message id.
#define BSPROXY_REQDEVOPEN_ARGBUF_LEN
static const NMFieldDef_T BsProxyRspErrFieldDefs[]
BsProxyRspGetVConnListFId_T
static const NMFieldDef_T BsProxyRspGetVConnListvconnFieldDef[]
#define BSPROXY_REQLOOPBACK_CDATA_LEN
#define BSPROXY_RSPGETVCONNINFO_MODVER_LEN
static const NMMsgDef_T BsProxyReqGetVConnListMsgDef
#define BSPROXY_RSPERR_EMSG_LEN