Home
last modified time | relevance | path

Searched refs:DST_COMMAND_HEAD_LEN (Results 1 – 3 of 3) sorted by relevance

/test/testfwk/developer_test/aw/cxx/distributed/
Ddistributed_major.cpp189 …int rlen = send(clientList_[devNo].fd, pCmdMsg, static_cast<size_t>(len + DST_COMMAND_HEAD_LEN), 0… in SendToAgent()
200 rlen = recv(clientList_[devNo].fd, szrbuf, DST_COMMAND_HEAD_LEN, 0); in SendToAgent()
201 if (static_cast<unsigned long>(rlen) >= DST_COMMAND_HEAD_LEN) { in SendToAgent()
258 …size_t rlen = cmdLen + expectValueLen + DST_COMMAND_HEAD_LEN + sizeof(int) * HALF_BUF_LEN + HALF_B… in RunTestCmd()
269 … ret = memcpy_s(pCmdTest->alignmentCmd + lenptr, MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN - lenptr, in RunTestCmd()
277 … ret = memcpy_s(pCmdTest->alignmentCmd + lenptr, MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN - lenptr, in RunTestCmd()
295 if ((msgLen + DST_COMMAND_HEAD_LEN) <= MAX_BUFF_LEN) { in SendMessage()
299 …errno_t ret = memcpy_s(pCmdTest->alignmentCmd, MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN, strMsg.c_str()… in SendMessage()
313 int dstMax = MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN; in Notify()
319 if ((msgLen + DST_COMMAND_HEAD_LEN) <= MAX_BUFF_LEN) { in Notify()
Ddistributed_agent.cpp160 int recvCmdLen = recv(clientSockFd_, buff, DST_COMMAND_HEAD_LEN, 0); in DoCmdServer()
161 if (static_cast<unsigned long>(recvCmdLen) < DST_COMMAND_HEAD_LEN) { in DoCmdServer()
173 …ine->len > 0 && static_cast<unsigned long>(pcline->len) <= (MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN)) { in DoCmdServer()
210 … sprintf_s(pclinereturn->alignmentCmd, (MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN), "%d", nresult); in DoCmdServer()
215 … send(clientSockFd_, pclinereturn, static_cast<size_t>(rlen + DST_COMMAND_HEAD_LEN), 0); in DoCmdServer()
230 pclinereturn->len = MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN; in DoCmdServer()
240 … send(clientSockFd_, pclinereturn, static_cast<size_t>(nresult + DST_COMMAND_HEAD_LEN), 0); in DoCmdServer()
Ddistributed.h42 #define DST_COMMAND_HEAD_LEN (sizeof(DistributedCmd) - sizeof(int)) macro