botsense  3.2.0
RoadNarrows Client-Server Proxied Services Framework
bsProxyMsgs.h File Reference

BotSense client application - bsProxy server-terminated core messages. More...

#include "rnr/rnrconfig.h"
#include "rnr/netmsgs.h"
#include "botsense/BotSense.h"

Go to the source code of this file.

Classes

struct  BsProxyRspErr_T
 
struct  BsProxyReqLoopback_T
 
struct  BsProxyRspLoopback_T
 
struct  BsProxyReqSetLogging_T
 
struct  BsProxyRspGetVersion_T
 
struct  BsProxyReqMsgTrace_T
 
struct  BsProxyReqDevOpen_T
 
struct  BsProxyRspDevOpen_T
 
struct  BsProxyReqDevClose_T
 
struct  BsProxyRspGetVConnList_T
 
struct  BsProxyReqGetVConnInfo_T
 
struct  BsProxyRspGetVConnInfo_T
 

Macros

#define BSPROXY_RSPERR_EMSG_LEN   (NMFVAL_LEN_MAX_STRING)
 
#define BSPROXY_REQLOOPBACK_CDATA_LEN   (NMFVAL_LEN_MAX_STRING)
 
#define BSPROXY_RSPLOOPBACK_CDATA_LEN   (NMFVAL_LEN_MAX_STRING)
 
#define BSPROXY_RSPGETVERSION_VERSION_LEN   (NMFVAL_LEN_MAX_STRING)
 
#define BSPROXY_REQDEVOPEN_DEVNAME_LEN   (NMFVAL_LEN_MAX_STRING)
 
#define BSPROXY_REQDEVOPEN_MODNAME_LEN   (NMFVAL_LEN_MAX_STRING)
 
#define BSPROXY_REQDEVOPEN_ARGBUF_LEN   (NMFVAL_LEN_MAX_VECTOR)
 
#define BSPROXY_RSPGETVCONNINFO_CLIENT_LEN   (NMFVAL_LEN_MAX_STRING)
 
#define BSPROXY_RSPGETVCONNINFO_DEVURI_LEN   (NMFVAL_LEN_MAX_STRING)
 
#define BSPROXY_RSPGETVCONNINFO_MODURI_LEN   (NMFVAL_LEN_MAX_STRING)
 
#define BSPROXY_RSPGETVCONNINFO_MODVER_LEN   (NMFVAL_LEN_MAX_STRING)
 
#define BSPROXY_RSPGETVCONNINFO_MODDATE_LEN   (NMFVAL_LEN_MAX_STRING)
 

Enumerations

enum  BsProxyMsgId_T {
  BsProxyMsgIdNone = 0,
  BsProxyMsgIdRspOk = 1,
  BsProxyMsgIdRspErr = 2,
  BsProxyMsgIdReqLoopback = 3,
  BsProxyMsgIdRspLoopback = 4,
  BsProxyMsgIdReqSetLogging = 5,
  BsProxyMsgIdReqGetVersion = 6,
  BsProxyMsgIdRspGetVersion = 7,
  BsProxyMsgIdReqMsgTrace = 8,
  BsProxyMsgIdReqDevOpen = 9,
  BsProxyMsgIdRspDevOpen = 10,
  BsProxyMsgIdReqDevClose = 11,
  BsProxyMsgIdReqGetVConnList = 12,
  BsProxyMsgIdRspGetVConnList = 13,
  BsProxyMsgIdReqGetVConnInfo = 14,
  BsProxyMsgIdRspGetVConnInfo = 15,
  BsProxyMsgIdNumOf = 16
}
 

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...
 
INLINE_IN_H int BsProxyPackRspErr (BsProxyRspErr_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a BsProxyRspErr ITV message in big-endian byte order into the output buffer. More...
 
INLINE_IN_H int BsProxyUnpackRspErr (byte_t buf[], size_t uMsgLen, BsProxyRspErr_T *pStruct, bool_t bTrace)
 Unpack a BsProxyRspErr ITV message in big-endian byte order from the input buffer. More...
 
INLINE_IN_H int BsProxyPackReqLoopback (BsProxyReqLoopback_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a BsProxyReqLoopback ITV message in big-endian byte order into the output buffer. More...
 
INLINE_IN_H int BsProxyUnpackReqLoopback (byte_t buf[], size_t uMsgLen, BsProxyReqLoopback_T *pStruct, bool_t bTrace)
 Unpack a BsProxyReqLoopback ITV message in big-endian byte order from the input buffer. More...
 
INLINE_IN_H int BsProxyPackRspLoopback (BsProxyRspLoopback_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a BsProxyRspLoopback ITV message in big-endian byte order into the output buffer. More...
 
INLINE_IN_H int BsProxyUnpackRspLoopback (byte_t buf[], size_t uMsgLen, BsProxyRspLoopback_T *pStruct, bool_t bTrace)
 Unpack a BsProxyRspLoopback ITV message in big-endian byte order from the input buffer. More...
 
INLINE_IN_H int BsProxyPackReqSetLogging (BsProxyReqSetLogging_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a BsProxyReqSetLogging ITV message in big-endian byte order into the output buffer. More...
 
INLINE_IN_H int BsProxyUnpackReqSetLogging (byte_t buf[], size_t uMsgLen, BsProxyReqSetLogging_T *pStruct, bool_t bTrace)
 Unpack a BsProxyReqSetLogging ITV message in big-endian byte order from the input buffer. More...
 
INLINE_IN_H int BsProxyPackRspGetVersion (BsProxyRspGetVersion_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a BsProxyRspGetVersion ITV message in big-endian byte order into the output buffer. More...
 
INLINE_IN_H int BsProxyUnpackRspGetVersion (byte_t buf[], size_t uMsgLen, BsProxyRspGetVersion_T *pStruct, bool_t bTrace)
 Unpack a BsProxyRspGetVersion ITV message in big-endian byte order from the input buffer. More...
 
INLINE_IN_H int BsProxyPackReqMsgTrace (BsProxyReqMsgTrace_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a BsProxyReqMsgTrace ITV message in big-endian byte order into the output buffer. More...
 
INLINE_IN_H int BsProxyUnpackReqMsgTrace (byte_t buf[], size_t uMsgLen, BsProxyReqMsgTrace_T *pStruct, bool_t bTrace)
 Unpack a BsProxyReqMsgTrace ITV message in big-endian byte order from the input buffer. More...
 
INLINE_IN_H int BsProxyPackReqDevOpen (BsProxyReqDevOpen_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a BsProxyReqDevOpen ITV message in big-endian byte order into the output buffer. More...
 
INLINE_IN_H int BsProxyUnpackReqDevOpen (byte_t buf[], size_t uMsgLen, BsProxyReqDevOpen_T *pStruct, bool_t bTrace)
 Unpack a BsProxyReqDevOpen ITV message in big-endian byte order from the input buffer. More...
 
INLINE_IN_H int BsProxyPackRspDevOpen (BsProxyRspDevOpen_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a BsProxyRspDevOpen ITV message in big-endian byte order into the output buffer. More...
 
INLINE_IN_H int BsProxyUnpackRspDevOpen (byte_t buf[], size_t uMsgLen, BsProxyRspDevOpen_T *pStruct, bool_t bTrace)
 Unpack a BsProxyRspDevOpen ITV message in big-endian byte order from the input buffer. More...
 
INLINE_IN_H int BsProxyPackReqDevClose (BsProxyReqDevClose_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a BsProxyReqDevClose ITV message in big-endian byte order into the output buffer. More...
 
INLINE_IN_H int BsProxyUnpackReqDevClose (byte_t buf[], size_t uMsgLen, BsProxyReqDevClose_T *pStruct, bool_t bTrace)
 Unpack a BsProxyReqDevClose ITV message in big-endian byte order from the input buffer. More...
 
INLINE_IN_H int BsProxyPackRspGetVConnList (BsProxyRspGetVConnList_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a BsProxyRspGetVConnList ITV message in big-endian byte order into the output buffer. More...
 
INLINE_IN_H int BsProxyUnpackRspGetVConnList (byte_t buf[], size_t uMsgLen, BsProxyRspGetVConnList_T *pStruct, bool_t bTrace)
 Unpack a BsProxyRspGetVConnList ITV message in big-endian byte order from the input buffer. More...
 
INLINE_IN_H int BsProxyPackReqGetVConnInfo (BsProxyReqGetVConnInfo_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a BsProxyReqGetVConnInfo ITV message in big-endian byte order into the output buffer. More...
 
INLINE_IN_H int BsProxyUnpackReqGetVConnInfo (byte_t buf[], size_t uMsgLen, BsProxyReqGetVConnInfo_T *pStruct, bool_t bTrace)
 Unpack a BsProxyReqGetVConnInfo ITV message in big-endian byte order from the input buffer. More...
 
INLINE_IN_H int BsProxyPackRspGetVConnInfo (BsProxyRspGetVConnInfo_T *pStruct, byte_t buf[], size_t bufSize, bool_t bTrace)
 Pack a BsProxyRspGetVConnInfo ITV message in big-endian byte order into the output buffer. More...
 
INLINE_IN_H int BsProxyUnpackRspGetVConnInfo (byte_t buf[], size_t uMsgLen, BsProxyRspGetVConnInfo_T *pStruct, bool_t bTrace)
 Unpack a BsProxyRspGetVConnInfo ITV message in big-endian byte order from the input buffer. More...
 

Variables

const NMMsgDef_T * BsProxyMsgDefLookupTbl []
 
size_t BsProxyMsgMaxLenLookupTbl []
 

Detailed Description

BotSense client application - bsProxy server-terminated core messages.

Warning
This file was auto-generated on 2018.08.10 13:54:22 from the NetMsgs XML specification bsProxyMsgs.xml.
Copyright:
(C) 2018. RoadNarrows LLC (http://www.roadnarrows.com) All Rights Reserved

Definition in file bsProxyMsgs.h.

Macro Definition Documentation

#define BSPROXY_REQDEVOPEN_ARGBUF_LEN   (NMFVAL_LEN_MAX_VECTOR)

ReqDevOpen argbuf maximum vector length

Definition at line 169 of file bsProxyMsgs.h.

Referenced by bsServerReqOpenDev().

#define BSPROXY_REQDEVOPEN_DEVNAME_LEN   (NMFVAL_LEN_MAX_STRING)

ReqDevOpen devname maximum string length

Definition at line 163 of file bsProxyMsgs.h.

Referenced by bsServerReqOpenDev().

#define BSPROXY_REQDEVOPEN_MODNAME_LEN   (NMFVAL_LEN_MAX_STRING)

ReqDevOpen modname maximum string length

Definition at line 166 of file bsProxyMsgs.h.

Referenced by bsServerReqOpenDev().

#define BSPROXY_REQLOOPBACK_CDATA_LEN   (NMFVAL_LEN_MAX_STRING)

ReqLoopback cdata maximum string length

Definition at line 85 of file bsProxyMsgs.h.

Referenced by ReqLoopback().

#define BSPROXY_RSPERR_EMSG_LEN   (NMFVAL_LEN_MAX_STRING)

RspErr emsg maximum string length

Definition at line 67 of file bsProxyMsgs.h.

Referenced by ClientSendVErrorRsp().

#define BSPROXY_RSPGETVCONNINFO_CLIENT_LEN   (NMFVAL_LEN_MAX_STRING)

RspGetVConnInfo client maximum string length

Definition at line 260 of file bsProxyMsgs.h.

Referenced by ReqGetVConnInfo().

#define BSPROXY_RSPGETVCONNINFO_DEVURI_LEN   (NMFVAL_LEN_MAX_STRING)

RspGetVConnInfo devuri maximum string length

Definition at line 263 of file bsProxyMsgs.h.

Referenced by ReqGetVConnInfo().

#define BSPROXY_RSPGETVCONNINFO_MODDATE_LEN   (NMFVAL_LEN_MAX_STRING)

RspGetVConnInfo moddate maximum string length

Definition at line 272 of file bsProxyMsgs.h.

Referenced by ReqGetVConnInfo().

#define BSPROXY_RSPGETVCONNINFO_MODURI_LEN   (NMFVAL_LEN_MAX_STRING)

RspGetVConnInfo moduri maximum string length

Definition at line 266 of file bsProxyMsgs.h.

Referenced by ReqGetVConnInfo().

#define BSPROXY_RSPGETVCONNINFO_MODVER_LEN   (NMFVAL_LEN_MAX_STRING)

RspGetVConnInfo modver maximum string length

Definition at line 269 of file bsProxyMsgs.h.

Referenced by ReqGetVConnInfo().

#define BSPROXY_RSPGETVERSION_VERSION_LEN   (NMFVAL_LEN_MAX_STRING)

RspGetVersion version maximum string length

Definition at line 132 of file bsProxyMsgs.h.

Referenced by ReqGetVersion().

#define BSPROXY_RSPLOOPBACK_CDATA_LEN   (NMFVAL_LEN_MAX_STRING)

RspLoopback cdata maximum string length

Definition at line 102 of file bsProxyMsgs.h.

Referenced by ReqLoopback().

Enumeration Type Documentation

BsProxy Message Id Enumeration

Enumerator
BsProxyMsgIdNone 

no message

BsProxyMsgIdRspOk 

RspOk.

BsProxyMsgIdRspErr 

RspErr.

BsProxyMsgIdReqLoopback 

ReqLoopback.

BsProxyMsgIdRspLoopback 

RspLoopback.

BsProxyMsgIdReqSetLogging 

ReqSetLogging.

BsProxyMsgIdReqGetVersion 

ReqGetVersion.

BsProxyMsgIdRspGetVersion 

RspGetVersion.

BsProxyMsgIdReqMsgTrace 

ReqMsgTrace.

BsProxyMsgIdReqDevOpen 

ReqDevOpen.

BsProxyMsgIdRspDevOpen 

RspDevOpen.

BsProxyMsgIdReqDevClose 

ReqDevClose.

BsProxyMsgIdReqGetVConnList 

ReqGetVConnList.

BsProxyMsgIdRspGetVConnList 

RspGetVConnList.

BsProxyMsgIdReqGetVConnInfo 

ReqGetVConnInfo.

BsProxyMsgIdRspGetVConnInfo 

RspGetVConnInfo.

BsProxyMsgIdNumOf 

number of message ids

Definition at line 35 of file bsProxyMsgs.h.

36 {
37  BsProxyMsgIdNone = 0, ///< no message
38  BsProxyMsgIdRspOk = 1, ///< RspOk
39  BsProxyMsgIdRspErr = 2, ///< RspErr
40  BsProxyMsgIdReqLoopback = 3, ///< ReqLoopback
41  BsProxyMsgIdRspLoopback = 4, ///< RspLoopback
42  BsProxyMsgIdReqSetLogging = 5, ///< ReqSetLogging
43  BsProxyMsgIdReqGetVersion = 6, ///< ReqGetVersion
44  BsProxyMsgIdRspGetVersion = 7, ///< RspGetVersion
45  BsProxyMsgIdReqMsgTrace = 8, ///< ReqMsgTrace
46  BsProxyMsgIdReqDevOpen = 9, ///< ReqDevOpen
47  BsProxyMsgIdRspDevOpen = 10, ///< RspDevOpen
48  BsProxyMsgIdReqDevClose = 11, ///< ReqDevClose
49  BsProxyMsgIdReqGetVConnList = 12, ///< ReqGetVConnList
50  BsProxyMsgIdRspGetVConnList = 13, ///< RspGetVConnList
51  BsProxyMsgIdReqGetVConnInfo = 14, ///< ReqGetVConnInfo
52  BsProxyMsgIdRspGetVConnInfo = 15, ///< RspGetVConnInfo
53  BsProxyMsgIdNumOf = 16 ///< number of message ids
ReqGetVConnInfo.
Definition: bsProxyMsgs.h:51
no message
Definition: bsProxyMsgs.h:37
RspGetVConnInfo.
Definition: bsProxyMsgs.h:52
RspGetVConnList.
Definition: bsProxyMsgs.h:50
ReqGetVConnList.
Definition: bsProxyMsgs.h:49
number of message ids
Definition: bsProxyMsgs.h:53
BsProxyMsgId_T
Definition: bsProxyMsgs.h:35

Function Documentation

const NMMsgDef_T* BsProxyLookupMsgDef ( BsProxyMsgId_T  eMsgId)

Look up the message definition associated with the message id.

Parameters
eMsgIdMessage Id.
Returns
On success, returns the pointer to the NMMsgDef_T. On error, NULL is returned.

Definition at line 874 of file bsProxyMsgs.c.

References BsProxyMsgDefLookupTbl, and BsProxyMsgIdNumOf.

Referenced by bsClientGetMsgName(), BsProxyLogMsgHdr(), BsProxyPackMsg(), BsProxyUnpackMsg(), and ClientSendServerRsp().

875 {
876  if( (uint_t)eMsgId >= (uint_t)BsProxyMsgIdNumOf )
877  {
878  return NULL;
879  }
880  else
881  {
882  return BsProxyMsgDefLookupTbl[(uint_t)eMsgId];
883  }
884 }
const NMMsgDef_T * BsProxyMsgDefLookupTbl[]
Definition: bsProxyMsgs.c:814
number of message ids
Definition: bsProxyMsgs.h:53
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.

Parameters
eMsgIdMessage Id.
Returns
On success, returns the number of bytes. On error, 0 is returned.

Definition at line 898 of file bsProxyMsgs.c.

References BsProxyMsgIdNumOf, and BsProxyMsgMaxLenLookupTbl.

899 {
900  if( (uint_t)eMsgId >= (uint_t)BsProxyMsgIdNumOf )
901  {
902  return (size_t)0;
903  }
904  else
905  {
906  return BsProxyMsgMaxLenLookupTbl[(uint_t)eMsgId];
907  }
908 }
size_t BsProxyMsgMaxLenLookupTbl[]
Definition: bsProxyMsgs.c:838
number of message ids
Definition: bsProxyMsgs.h:53
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.

Parameters
eMsgIdMessage Id.
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

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().

929 {
930  const NMMsgDef_T *pMsgDef;
931 
932  if( (pMsgDef = BsProxyLookupMsgDef(eMsgId)) == NULL )
933  {
934  LOGERROR("%s(ecode=%d): msgid=%u.",
935  nmStrError(NM_ECODE_MSGID), NM_ECODE_MSGID, eMsgId);
936  return -NM_ECODE_MSGID;
937  }
938 
939  if( bTrace )
940  {
941  return nmPackITVMsgDebug(pMsgDef, pStruct, buf, bufSize, NMEndianBig);
942  }
943  else
944  {
945  return nmPackITVMsg(pMsgDef, pStruct, buf, bufSize, NMEndianBig);
946  }
947 }
const NMMsgDef_T * BsProxyLookupMsgDef(BsProxyMsgId_T eMsgId)
Look up the message definition associated with the message id.
Definition: bsProxyMsgs.c:874
INLINE_IN_H int BsProxyPackReqDevClose ( BsProxyReqDevClose_T pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a BsProxyReqDevClose ITV message in big-endian byte order into the output buffer.

Parameters
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 689 of file bsProxyMsgs.h.

References BsProxyMsgIdReqDevClose, and BsProxyPackMsg().

Referenced by bsServerReqCloseDev().

693 {
694  return BsProxyPackMsg(BsProxyMsgIdReqDevClose, pStruct, buf, bufSize, bTrace);
695 }
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.
Definition: bsProxyMsgs.c:924
INLINE_IN_H int BsProxyPackReqDevOpen ( BsProxyReqDevOpen_T pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a BsProxyReqDevOpen ITV message in big-endian byte order into the output buffer.

Parameters
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 603 of file bsProxyMsgs.h.

References BsProxyMsgIdReqDevOpen, and BsProxyPackMsg().

Referenced by bsServerReqOpenDev().

607 {
608  return BsProxyPackMsg(BsProxyMsgIdReqDevOpen, pStruct, buf, bufSize, bTrace);
609 }
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.
Definition: bsProxyMsgs.c:924
INLINE_IN_H int BsProxyPackReqGetVConnInfo ( BsProxyReqGetVConnInfo_T pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a BsProxyReqGetVConnInfo ITV message in big-endian byte order into the output buffer.

Parameters
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 775 of file bsProxyMsgs.h.

References BsProxyMsgIdReqGetVConnInfo, and BsProxyPackMsg().

Referenced by bsServerReqGetVConnInfo().

779 {
780  return BsProxyPackMsg(BsProxyMsgIdReqGetVConnInfo, pStruct, buf, bufSize, bTrace);
781 }
ReqGetVConnInfo.
Definition: bsProxyMsgs.h:51
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.
Definition: bsProxyMsgs.c:924
INLINE_IN_H int BsProxyPackReqLoopback ( BsProxyReqLoopback_T pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a BsProxyReqLoopback ITV message in big-endian byte order into the output buffer.

Parameters
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 388 of file bsProxyMsgs.h.

References BsProxyMsgIdReqLoopback, and BsProxyPackMsg().

Referenced by bsServerReqLoopback().

392 {
393  return BsProxyPackMsg(BsProxyMsgIdReqLoopback, pStruct, buf, bufSize, bTrace);
394 }
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.
Definition: bsProxyMsgs.c:924
INLINE_IN_H int BsProxyPackReqMsgTrace ( BsProxyReqMsgTrace_T pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a BsProxyReqMsgTrace ITV message in big-endian byte order into the output buffer.

Parameters
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 560 of file bsProxyMsgs.h.

References BsProxyMsgIdReqMsgTrace, and BsProxyPackMsg().

Referenced by bsServerReqMsgTrace().

564 {
565  return BsProxyPackMsg(BsProxyMsgIdReqMsgTrace, pStruct, buf, bufSize, bTrace);
566 }
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.
Definition: bsProxyMsgs.c:924
INLINE_IN_H int BsProxyPackReqSetLogging ( BsProxyReqSetLogging_T pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a BsProxyReqSetLogging ITV message in big-endian byte order into the output buffer.

Parameters
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 474 of file bsProxyMsgs.h.

References BsProxyMsgIdReqSetLogging, and BsProxyPackMsg().

Referenced by bsServerReqSetLogging().

478 {
479  return BsProxyPackMsg(BsProxyMsgIdReqSetLogging, pStruct, buf, bufSize, bTrace);
480 }
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.
Definition: bsProxyMsgs.c:924
INLINE_IN_H int BsProxyPackRspDevOpen ( BsProxyRspDevOpen_T pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a BsProxyRspDevOpen ITV message in big-endian byte order into the output buffer.

Parameters
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 646 of file bsProxyMsgs.h.

References BsProxyMsgIdRspDevOpen, and BsProxyPackMsg().

650 {
651  return BsProxyPackMsg(BsProxyMsgIdRspDevOpen, pStruct, buf, bufSize, bTrace);
652 }
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.
Definition: bsProxyMsgs.c:924
INLINE_IN_H int BsProxyPackRspErr ( BsProxyRspErr_T pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a BsProxyRspErr ITV message in big-endian byte order into the output buffer.

Parameters
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 345 of file bsProxyMsgs.h.

References BsProxyMsgIdRspErr, and BsProxyPackMsg().

349 {
350  return BsProxyPackMsg(BsProxyMsgIdRspErr, pStruct, buf, bufSize, bTrace);
351 }
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.
Definition: bsProxyMsgs.c:924
INLINE_IN_H int BsProxyPackRspGetVConnInfo ( BsProxyRspGetVConnInfo_T pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a BsProxyRspGetVConnInfo ITV message in big-endian byte order into the output buffer.

Parameters
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 818 of file bsProxyMsgs.h.

References BsProxyMsgIdRspGetVConnInfo, and BsProxyPackMsg().

822 {
823  return BsProxyPackMsg(BsProxyMsgIdRspGetVConnInfo, pStruct, buf, bufSize, bTrace);
824 }
RspGetVConnInfo.
Definition: bsProxyMsgs.h:52
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.
Definition: bsProxyMsgs.c:924
INLINE_IN_H int BsProxyPackRspGetVConnList ( BsProxyRspGetVConnList_T pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a BsProxyRspGetVConnList ITV message in big-endian byte order into the output buffer.

Parameters
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 732 of file bsProxyMsgs.h.

References BsProxyMsgIdRspGetVConnList, and BsProxyPackMsg().

736 {
737  return BsProxyPackMsg(BsProxyMsgIdRspGetVConnList, pStruct, buf, bufSize, bTrace);
738 }
RspGetVConnList.
Definition: bsProxyMsgs.h:50
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.
Definition: bsProxyMsgs.c:924
INLINE_IN_H int BsProxyPackRspGetVersion ( BsProxyRspGetVersion_T pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a BsProxyRspGetVersion ITV message in big-endian byte order into the output buffer.

Parameters
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 517 of file bsProxyMsgs.h.

References BsProxyMsgIdRspGetVersion, and BsProxyPackMsg().

521 {
522  return BsProxyPackMsg(BsProxyMsgIdRspGetVersion, pStruct, buf, bufSize, bTrace);
523 }
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.
Definition: bsProxyMsgs.c:924
INLINE_IN_H int BsProxyPackRspLoopback ( BsProxyRspLoopback_T pStruct,
byte_t  buf[],
size_t  bufSize,
bool_t  bTrace 
)

Pack a BsProxyRspLoopback ITV message in big-endian byte order into the output buffer.

Parameters
[in]pStructPointer to the associated, populated message structure.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes packed. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 431 of file bsProxyMsgs.h.

References BsProxyMsgIdRspLoopback, and BsProxyPackMsg().

435 {
436  return BsProxyPackMsg(BsProxyMsgIdRspLoopback, pStruct, buf, bufSize, bTrace);
437 }
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.
Definition: bsProxyMsgs.c:924
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.

Parameters
eMsgIdMessage Id.
[in]bufInput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

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().

967 {
968  const NMMsgDef_T *pMsgDef;
969 
970  if( (pMsgDef = BsProxyLookupMsgDef(eMsgId)) == NULL )
971  {
972  LOGERROR("%s(ecode=%d): msgid=%u.",
973  nmStrError(NM_ECODE_MSGID), NM_ECODE_MSGID, eMsgId);
974  return -NM_ECODE_MSGID;
975  }
976 
977  if( bTrace )
978  {
979  return nmUnpackITVMsgDebug(pMsgDef, buf, uMsgLen, pStruct, NMEndianBig);
980  }
981  else
982  {
983  return nmUnpackITVMsg(pMsgDef, buf, uMsgLen, pStruct, NMEndianBig);
984  }
985 }
const NMMsgDef_T * BsProxyLookupMsgDef(BsProxyMsgId_T eMsgId)
Look up the message definition associated with the message id.
Definition: bsProxyMsgs.c:874
INLINE_IN_H int BsProxyUnpackReqDevClose ( byte_t  buf[],
size_t  uMsgLen,
BsProxyReqDevClose_T pStruct,
bool_t  bTrace 
)

Unpack a BsProxyReqDevClose ITV message in big-endian byte order from the input buffer.

Parameters
[in]bufOutput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 710 of file bsProxyMsgs.h.

References BsProxyMsgIdReqDevClose, and BsProxyUnpackMsg().

Referenced by ReqDevClose().

714 {
715  return BsProxyUnpackMsg(BsProxyMsgIdReqDevClose, buf, uMsgLen, pStruct, bTrace);
716 }
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.
Definition: bsProxyMsgs.c:962
INLINE_IN_H int BsProxyUnpackReqDevOpen ( byte_t  buf[],
size_t  uMsgLen,
BsProxyReqDevOpen_T pStruct,
bool_t  bTrace 
)

Unpack a BsProxyReqDevOpen ITV message in big-endian byte order from the input buffer.

Parameters
[in]bufOutput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 624 of file bsProxyMsgs.h.

References BsProxyMsgIdReqDevOpen, and BsProxyUnpackMsg().

Referenced by ReqDevOpen().

628 {
629  return BsProxyUnpackMsg(BsProxyMsgIdReqDevOpen, buf, uMsgLen, pStruct, bTrace);
630 }
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.
Definition: bsProxyMsgs.c:962
INLINE_IN_H int BsProxyUnpackReqGetVConnInfo ( byte_t  buf[],
size_t  uMsgLen,
BsProxyReqGetVConnInfo_T pStruct,
bool_t  bTrace 
)

Unpack a BsProxyReqGetVConnInfo ITV message in big-endian byte order from the input buffer.

Parameters
[in]bufOutput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 796 of file bsProxyMsgs.h.

References BsProxyMsgIdReqGetVConnInfo, and BsProxyUnpackMsg().

Referenced by ReqGetVConnInfo().

800 {
801  return BsProxyUnpackMsg(BsProxyMsgIdReqGetVConnInfo, buf, uMsgLen, pStruct, bTrace);
802 }
ReqGetVConnInfo.
Definition: bsProxyMsgs.h:51
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.
Definition: bsProxyMsgs.c:962
INLINE_IN_H int BsProxyUnpackReqLoopback ( byte_t  buf[],
size_t  uMsgLen,
BsProxyReqLoopback_T pStruct,
bool_t  bTrace 
)

Unpack a BsProxyReqLoopback ITV message in big-endian byte order from the input buffer.

Parameters
[in]bufOutput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 409 of file bsProxyMsgs.h.

References BsProxyMsgIdReqLoopback, and BsProxyUnpackMsg().

Referenced by ReqLoopback().

413 {
414  return BsProxyUnpackMsg(BsProxyMsgIdReqLoopback, buf, uMsgLen, pStruct, bTrace);
415 }
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.
Definition: bsProxyMsgs.c:962
INLINE_IN_H int BsProxyUnpackReqMsgTrace ( byte_t  buf[],
size_t  uMsgLen,
BsProxyReqMsgTrace_T pStruct,
bool_t  bTrace 
)

Unpack a BsProxyReqMsgTrace ITV message in big-endian byte order from the input buffer.

Parameters
[in]bufOutput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 581 of file bsProxyMsgs.h.

References BsProxyMsgIdReqMsgTrace, and BsProxyUnpackMsg().

Referenced by ReqMsgTrace().

585 {
586  return BsProxyUnpackMsg(BsProxyMsgIdReqMsgTrace, buf, uMsgLen, pStruct, bTrace);
587 }
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.
Definition: bsProxyMsgs.c:962
INLINE_IN_H int BsProxyUnpackReqSetLogging ( byte_t  buf[],
size_t  uMsgLen,
BsProxyReqSetLogging_T pStruct,
bool_t  bTrace 
)

Unpack a BsProxyReqSetLogging ITV message in big-endian byte order from the input buffer.

Parameters
[in]bufOutput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 495 of file bsProxyMsgs.h.

References BsProxyMsgIdReqSetLogging, and BsProxyUnpackMsg().

Referenced by ReqSetLogging().

499 {
500  return BsProxyUnpackMsg(BsProxyMsgIdReqSetLogging, buf, uMsgLen, pStruct, bTrace);
501 }
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.
Definition: bsProxyMsgs.c:962
INLINE_IN_H int BsProxyUnpackRspDevOpen ( byte_t  buf[],
size_t  uMsgLen,
BsProxyRspDevOpen_T pStruct,
bool_t  bTrace 
)

Unpack a BsProxyRspDevOpen ITV message in big-endian byte order from the input buffer.

Parameters
[in]bufOutput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 667 of file bsProxyMsgs.h.

References BsProxyMsgIdRspDevOpen, and BsProxyUnpackMsg().

Referenced by bsServerReqOpenDev().

671 {
672  return BsProxyUnpackMsg(BsProxyMsgIdRspDevOpen, buf, uMsgLen, pStruct, bTrace);
673 }
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.
Definition: bsProxyMsgs.c:962
INLINE_IN_H int BsProxyUnpackRspErr ( byte_t  buf[],
size_t  uMsgLen,
BsProxyRspErr_T pStruct,
bool_t  bTrace 
)

Unpack a BsProxyRspErr ITV message in big-endian byte order from the input buffer.

Parameters
[in]bufOutput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 366 of file bsProxyMsgs.h.

References BsProxyMsgIdRspErr, and BsProxyUnpackMsg().

Referenced by bsClientTrans().

370 {
371  return BsProxyUnpackMsg(BsProxyMsgIdRspErr, buf, uMsgLen, pStruct, bTrace);
372 }
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.
Definition: bsProxyMsgs.c:962
INLINE_IN_H int BsProxyUnpackRspGetVConnInfo ( byte_t  buf[],
size_t  uMsgLen,
BsProxyRspGetVConnInfo_T pStruct,
bool_t  bTrace 
)

Unpack a BsProxyRspGetVConnInfo ITV message in big-endian byte order from the input buffer.

Parameters
[in]bufOutput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 839 of file bsProxyMsgs.h.

References BsProxyMsgIdRspGetVConnInfo, and BsProxyUnpackMsg().

Referenced by bsServerReqGetVConnInfo().

843 {
844  return BsProxyUnpackMsg(BsProxyMsgIdRspGetVConnInfo, buf, uMsgLen, pStruct, bTrace);
845 }
RspGetVConnInfo.
Definition: bsProxyMsgs.h:52
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.
Definition: bsProxyMsgs.c:962
INLINE_IN_H int BsProxyUnpackRspGetVConnList ( byte_t  buf[],
size_t  uMsgLen,
BsProxyRspGetVConnList_T pStruct,
bool_t  bTrace 
)

Unpack a BsProxyRspGetVConnList ITV message in big-endian byte order from the input buffer.

Parameters
[in]bufOutput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 753 of file bsProxyMsgs.h.

References BsProxyMsgIdRspGetVConnList, and BsProxyUnpackMsg().

Referenced by bsServerReqGetVConnList().

757 {
758  return BsProxyUnpackMsg(BsProxyMsgIdRspGetVConnList, buf, uMsgLen, pStruct, bTrace);
759 }
RspGetVConnList.
Definition: bsProxyMsgs.h:50
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.
Definition: bsProxyMsgs.c:962
INLINE_IN_H int BsProxyUnpackRspGetVersion ( byte_t  buf[],
size_t  uMsgLen,
BsProxyRspGetVersion_T pStruct,
bool_t  bTrace 
)

Unpack a BsProxyRspGetVersion ITV message in big-endian byte order from the input buffer.

Parameters
[in]bufOutput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 538 of file bsProxyMsgs.h.

References BsProxyMsgIdRspGetVersion, and BsProxyUnpackMsg().

Referenced by bsServerReqGetVersion().

542 {
543  return BsProxyUnpackMsg(BsProxyMsgIdRspGetVersion, buf, uMsgLen, pStruct, bTrace);
544 }
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.
Definition: bsProxyMsgs.c:962
INLINE_IN_H int BsProxyUnpackRspLoopback ( byte_t  buf[],
size_t  uMsgLen,
BsProxyRspLoopback_T pStruct,
bool_t  bTrace 
)

Unpack a BsProxyRspLoopback ITV message in big-endian byte order from the input buffer.

Parameters
[in]bufOutput message buffer.
uMsgLenLength of message (bytes) in input buffer.
[out]pStructPointer to the associated message structure.
bTraceDo [not] trace packing.
Returns
On success, returns the number of bytes unpacked. On error, returns the appropriate < 0 negated NM_ECODE.

Definition at line 452 of file bsProxyMsgs.h.

References BsProxyMsgIdRspLoopback, and BsProxyUnpackMsg().

Referenced by bsServerReqLoopback().

456 {
457  return BsProxyUnpackMsg(BsProxyMsgIdRspLoopback, buf, uMsgLen, pStruct, bTrace);
458 }
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.
Definition: bsProxyMsgs.c:962

Variable Documentation

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().