Home
last modified time | relevance | path

Searched refs:cmdLen (Results 1 – 5 of 5) sorted by relevance

/test/testfwk/developer_test/aw/cxx/distributed/
Ddistributed_agent.cpp179 unsigned int cmdLen = ntohs(*reinterpret_cast<int *>(pcline->alignmentCmd)); in DoCmdServer() local
182 char *pAlignmentCmd = new char[cmdLen + 1]; in DoCmdServer()
183 ret = memcpy_s(pAlignmentCmd, cmdLen + 1, pcline->alignmentCmd + rlen, cmdLen); in DoCmdServer()
188 pAlignmentCmd[cmdLen] = '\0'; in DoCmdServer()
189 rlen += cmdLen + 1; in DoCmdServer()
200 int nresult = OnProcessCmd(pAlignmentCmd, cmdLen, pszEValue, eValueLen); in DoCmdServer()
327 int DistributedAgent::OnProcessCmd(const std::string &strCommand, int cmdLen, in OnProcessCmd() argument
360 cmdLen - cmdNo - 1); in OnProcessCmd()
365 …nresult = OnProcessCmd(alignmentCmd, cmdNo, szArgs, cmdLen - cmdNo, strExpectValue, expectValueLen… in OnProcessCmd()
369 int DistributedAgent::OnProcessCmd(const std::string &strCommand, int cmdLen, const std::string &st… in OnProcessCmd() argument
[all …]
Ddistributed_major.cpp244 bool DistributeTestEnvironment::RunTestCmd(size_t devNo, const std::string &strCommand, int cmdLen, in RunTestCmd() argument
258 …size_t rlen = cmdLen + expectValueLen + DST_COMMAND_HEAD_LEN + sizeof(int) * HALF_BUF_LEN + HALF_B… in RunTestCmd()
267 *reinterpret_cast<int *>(pCmdTest->alignmentCmd + lenptr) = htons(cmdLen); in RunTestCmd()
270 strCommand.c_str(), cmdLen); in RunTestCmd()
274 lenptr += cmdLen + 1; in RunTestCmd()
361 bool DistributeTest::RunCmdOnAgent(AGENT_NO devNo, const std::string &strCommand, int cmdLen, in RunCmdOnAgent() argument
365 … return g_pDistributetestEnv->RunTestCmd(devNo, strCommand, cmdLen, strExpectValue, expectValueLen, in RunCmdOnAgent()
388 int cmdLen = strBuf.length() + 1; in RunCmdOnAgent() local
390 … return g_pDistributetestEnv->RunTestCmd(devNo, strBuf, cmdLen, strExpectValue, expectValueLen, in RunCmdOnAgent()
414 int cmdLen = strBuf.length() + 1; in RunCmdOnAgent() local
[all …]
Ddistributed_agent.h38 …int OnProcessCmd(const std::string &strCommand, int cmdLen, const std::string &strExpectValue, int…
51 …virtual int OnProcessCmd(const std::string &strCommand, int cmdLen, const std::string &strArgs, in…
Ddistributed_major.h43 …bool RunTestCmd(size_t devNo, const std::string &strCommand, int cmdLen, const std::string &strExp…
79 bool RunCmdOnAgent(AGENT_NO devNo, const std::string &strCommand, int cmdLen,
/test/testfwk/developer_test/examples/distributedb/test/distributedtest/common/
Ddistribute_demo_agent.cpp47 …virtual int OnProcessCmd(const std::string &strCommand, int cmdLen, const std::string &strArgs, in…
55 …int ProcessByUseMap(const std::string &strCommand, int cmdLen, const std::string &strArgs, int arg…
100 int cmdLen, const std::string &strExpectValue, int expectValueLen) in OnProcessCmd() argument
107 return DistributedAgent::OnProcessCmd(strCommand, cmdLen, strExpectValue, expectValueLen); in OnProcessCmd()