botsense  3.2.0
RoadNarrows Client-Server Proxied Services Framework

Execute a request - response transaction with the server. More...

Execute a request - response transaction with the server.

Synopsis:
#include "botsense/BotSense.h"
#include "botsense/libBotSense.h"

int bsClientTrans(BsClient_P pClient, int hndVConn, uint_t uReqMsgId, byte_t bufReq[], size_t uReqBodyLen, uint_t uRspMsgId, byte_t bufRsp[], size_t sizeRspBuf);

Description:

Note
The request and response buffer can be the same buffer if packed request contents does not need to be preserved.
Warning
There must be exactly BSPROXY_MSG_HDR_LEN bytes at the front of the request buffer available to pack the BotSense header. (Reduces the number of buffer copies.)
Request Format:
msghdr msgbody
Response Format:
msghdr msgbody
Parameters
pClient