Home
last modified time | relevance | path

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

/test/testfwk/developer_test/aw/cxx/distributed/
Ddistributed_agent.cpp174 … receiveLen = recv(clientSockFd_, pcline->alignmentCmd, static_cast<size_t>(pcline->len), 0); in DoCmdServer()
175 … HiLog::Info(DistributedAgent::LABEL, "agent get message cmd=%s .\n", pcline->alignmentCmd); in DoCmdServer()
179 unsigned int cmdLen = ntohs(*reinterpret_cast<int *>(pcline->alignmentCmd)); in DoCmdServer()
183 ret = memcpy_s(pAlignmentCmd, cmdLen + 1, pcline->alignmentCmd + rlen, cmdLen); in DoCmdServer()
190 … unsigned int eValueLen = ntohs(*reinterpret_cast<int *>(pcline->alignmentCmd + rlen)); in DoCmdServer()
193 … ret = memcpy_s(pszEValue, eValueLen + 1, pcline->alignmentCmd + rlen, eValueLen); in DoCmdServer()
210 … sprintf_s(pclinereturn->alignmentCmd, (MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN), "%d", nresult); in DoCmdServer()
211 rlen = strlen(pclinereturn->alignmentCmd) + 1; in DoCmdServer()
214 pclinereturn->alignmentCmd); in DoCmdServer()
231 std::string resultcmd = pclinereturn->alignmentCmd; in DoCmdServer()
[all …]
Ddistributed_major.cpp209 recv(clientList_[devNo].fd, pCmdTest->alignmentCmd, pCmdTest->len, 0); in SendToAgent()
215 breturn = onProcessReturn(pCmdTest->alignmentCmd, pCmdTest->len); in SendToAgent()
267 *reinterpret_cast<int *>(pCmdTest->alignmentCmd + lenptr) = htons(cmdLen); in RunTestCmd()
269 … ret = memcpy_s(pCmdTest->alignmentCmd + lenptr, MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN - lenptr, in RunTestCmd()
275 *reinterpret_cast<int *>(pCmdTest->alignmentCmd + lenptr) = htons(expectValueLen); in RunTestCmd()
277 … ret = memcpy_s(pCmdTest->alignmentCmd + lenptr, MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN - lenptr, in RunTestCmd()
299 …errno_t ret = memcpy_s(pCmdTest->alignmentCmd, MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN, strMsg.c_str()… in SendMessage()
323 errno_t ret = memcpy_s(pCmdTest->alignmentCmd, dstMax, strMsg.c_str(), msgLen); in Notify()
327 pCmdTest->alignmentCmd[msgLen] = 0; in Notify()
Ddistributed.h36 char alignmentCmd[1]; // int Byte alignment member