21 #include "rnr/rnrconfig.h" 23 #include "rnr/netmsgs.h" 29 #define EOFDEF {NULL, 0, NMFTypeNone, 0, } 48 .m_sFName =
"writebuf",
50 .m_eFType = NMFTypeU8,
51 .m_uOffset = (size_t)0,
52 .m_this.m_u8.m_bits = (byte_t)(0),
53 .m_this.m_u8.m_valMin = (byte_t)(0),
54 .m_this.m_u8.m_valMax = (byte_t)(0),
55 .m_this.m_u8.m_valConst = (byte_t)(0),
76 .m_sFName =
"writebuf",
78 .m_eFType = NMFTypeVector,
80 .m_this.m_vector.m_uMaxCount
82 .m_this.m_vector.m_uElemSize
84 .m_this.m_vector.m_pThisElem
95 .m_sMsgName =
"BsNullReqWrite",
97 .m_uCount = (size_t)(1),
122 .m_sFName =
"byteswritten",
124 .m_eFType = NMFTypeU8,
126 .m_this.m_u8.m_bits = (byte_t)(0),
127 .m_this.m_u8.m_valMin = (byte_t)(0),
128 .m_this.m_u8.m_valMax = (byte_t)(0),
129 .m_this.m_u8.m_valConst = (byte_t)(0),
139 .m_sMsgName =
"BsNullRspWrite",
141 .m_uCount = (size_t)(1),
242 const NMMsgDef_T *pMsgDef;
246 LOGERROR(
"%s(ecode=%d): msgid=%u.",
247 nmStrError(NM_ECODE_MSGID), NM_ECODE_MSGID, eMsgId);
248 return -NM_ECODE_MSGID;
253 return nmPackITVMsgDebug(pMsgDef, pStruct, buf, bufSize, NMEndianBig);
257 return nmPackITVMsg(pMsgDef, pStruct, buf, bufSize, NMEndianBig);
280 const NMMsgDef_T *pMsgDef;
284 LOGERROR(
"%s(ecode=%d): msgid=%u.",
285 nmStrError(NM_ECODE_MSGID), NM_ECODE_MSGID, eMsgId);
286 return -NM_ECODE_MSGID;
291 return nmUnpackITVMsgDebug(pMsgDef, buf, uMsgLen, pStruct, NMEndianBig);
295 return nmUnpackITVMsg(pMsgDef, buf, uMsgLen, pStruct, NMEndianBig);
size_t BsNullLookupMsgMaxLen(BsNullMsgId_T eMsgId)
Look up the message maximum length associated with the message id.
static const NMMsgDef_T BsNullReqWriteMsgDef
const NMMsgDef_T * BsNullMsgDefLookupTbl[]
static const NMFieldDef_T BsNullReqWriteFieldDefs[]
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.
static const NMMsgDef_T BsNullRspWriteMsgDef
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.
static const NMFieldDef_T BsNullRspWriteFieldDefs[]
const NMMsgDef_T * BsNullLookupMsgDef(BsNullMsgId_T eMsgId)
Look up the message definition associated with the message id.
size_t BsNullMsgMaxLenLookupTbl[]
#define BSNULL_REQWRITE_WRITEBUF_LEN
static const NMFieldDef_T BsNullReqWritewritebufFieldDef[]
BotSense bsProxy server - client /dev/null NetMsgs XML Definition.