botsense/bsProxy/bsProxyMod.c
void ModCbSendErrorRsp(BsVConnHnd_T hndVConn,
                       BsTid_T      uTid,
                       int          nECode,
                       const char  *sErrFmt,
                       ...)
{
  BsProxyVConn_T *pVConn;
  va_list         ap;

  if( (pVConn = VConnGet(hndVConn)) != NULL )
  {
    va_start(ap, sErrFmt);
    ClientSendVErrorRsp(pVConn->m_hndClient, uTid, nECode, sErrFmt, ap);
    va_end(ap);
  }
  else
  {
    LOGERROR("%s: %s(ecode=%d): VConn=%d.",
      ServerHasName(), bsStrError(BS_ECODE_NO_VCONN), BS_ECODE_NO_VCONN,
      hndVConn);
  }
}
/*!
 * \brief Send generic error repsonse callback function.
 *
 * \note Service thread request handler has already locked the virtual
 * connection.
 *
 * \param hndVConn  Virtual connection handle.
 * \param uTid      Request-Response transaction id.
 * \param nECode    \copydoc doc_param_ecode
 * \param sErrFmt   Error format string.
 * \param ...       Format string variable arguments.
 */
\brief Send generic error repsonse callback function.
\note Service thread request handler has already locked the virtual
connection.

\param hndVConn  Virtual connection handle.
\param uTid      Request-Response transaction id.
\ brief Send generic error repsonse callback function . \ note Service thread request handler has already locked the virtual connection . \ param hndVConn Virtual connection handle . \ param uTid Request - Response transaction id .
void ModCbSendErrorRsp(BsVConnHnd_T hndVConn,
                       BsTid_T      uTid,
                       int          nECode,
                       const char  *sErrFmt,
                       ...)
{
  BsProxyVConn_T *pVConn;
  va_list         ap;
  if( (pVConn = VConnGet(hndVConn)) != NULL )
  {
    va_start(ap, sErrFmt);
    ClientSendVErrorRsp(pVConn->m_hndClient, uTid, nECode, sErrFmt, ap);
    va_end(ap);
  }
  else
  {
    LOGERROR("%s: %s(ecode=%d): VConn=%d.",
      ServerHasName(), bsStrError(BS_ECODE_NO_VCONN), BS_ECODE_NO_VCONN,
      hndVConn);
  }
}
void ModCbSendErrorRsp ( BsVConnHnd_T hndVConn , BsTid_T uTid , int nECode , const char * sErrFmt , ... ) { BsProxyVConn_T * pVConn ; va_list ap ; if ( ( pVConn = VConnGet ( hndVConn ) ) != NULL ) { va_start ( ap , sErrFmt ) ; ClientSendVErrorRsp ( pVConn -> m_hndClient , uTid , nECode , sErrFmt , ap ) ; va_end ( ap ) ; } else { LOGERROR ( " " , ServerHasName ( ) , bsStrError ( BS_ECODE_NO_VCONN ) , BS_ECODE_NO_VCONN , hndVConn ) ; } }
\brief Send generic error repsonse callback function.
\ brief Send generic error repsonse callback function .