botsense/bsProxy/bsProxyThread.c
BsProxyThReq_T *ThReqNew(BsProxyClientHnd_T hndClient,
                         BsVConnHnd_T       hndVConn,
                         BsTid_T            uTid,
                         BsMsgId_T          uMsgId,
                         byte_t             bufReq[],
                         size_t             uReqLen)
{
  BsProxyThReq_T *pThReq = NEW(BsProxyThReq_T);

  pThReq->m_hndClient = hndClient;
  pThReq->m_hndVConn  = hndVConn;
  pThReq->m_uTid      = uTid;
  pThReq->m_uMsgId    = uMsgId;
  pThReq->m_bufReq    = bufReq;
  pThReq->m_uReqLen   = uReqLen;

  return pThReq;
}
/*!
 * \brief Allocate and initalized a new service thread request.
 *
 * \param hndClient Client handle.
 * \param hndVConn  Virtual connection handle.
 * \param uTid      Request-Response transaction id.
 * \param uMsgId    Request message id.
 * \param bufReq    Allocated packed request message body.
 * \param uReqLen   Length of request in buffer (number of bytes).
 *
 * \return Pointer to allocated request.
 */
\brief Allocate and initalized a new service thread request.
\param hndClient Client handle.
\param hndVConn  Virtual connection handle.
\param uTid      Request-Response transaction id.
\param uMsgId    Request message id.
\param bufReq    Allocated packed request message body.
\param uReqLen   Length of request in buffer (number of bytes).

\return Pointer to allocated request.
\ brief Allocate and initalized a new service thread request . \ param hndClient Client handle . \ param hndVConn Virtual connection handle . \ param uTid Request - Response transaction id . \ param uMsgId Request message id . \ param bufReq Allocated packed request message body . \ param uReqLen Length of request in buffer ( number of bytes ) . \ return Pointer to allocated request .
BsProxyThReq_T *ThReqNew(BsProxyClientHnd_T hndClient,
                         BsVConnHnd_T       hndVConn,
                         BsTid_T            uTid,
                         BsMsgId_T          uMsgId,
                         byte_t             bufReq[],
                         size_t             uReqLen)
{
  BsProxyThReq_T *pThReq = NEW(BsProxyThReq_T);
  pThReq->m_hndClient = hndClient;
  pThReq->m_hndVConn  = hndVConn;
  pThReq->m_uTid      = uTid;
  pThReq->m_uMsgId    = uMsgId;
  pThReq->m_bufReq    = bufReq;
  pThReq->m_uReqLen   = uReqLen;
  return pThReq;
}
BsProxyThReq_T * ThReqNew ( BsProxyClientHnd_T hndClient , BsVConnHnd_T hndVConn , BsTid_T uTid , BsMsgId_T uMsgId , byte_t bufReq [ ] , size_t uReqLen ) { BsProxyThReq_T * pThReq = NEW ( BsProxyThReq_T ) ; pThReq -> m_hndClient = hndClient ; pThReq -> m_hndVConn = hndVConn ; pThReq -> m_uTid = uTid ; pThReq -> m_uMsgId = uMsgId ; pThReq -> m_bufReq = bufReq ; pThReq -> m_uReqLen = uReqLen ; return pThReq ; }
\brief Allocate and initalized a new service thread request.
\ brief Allocate and initalized a new service thread request .