未验证 提交 acf67038 编写于 作者: M mipengwei 提交者: Gitee

Signed-off-by:mipengwei <mipengwei@huawei.com>

上级 fe87a915
......@@ -130,7 +130,7 @@ int DistributeTestEnvironment::ConnectAgent(size_t devNo)
addr.sin_port = htons(serverPort_);
int connectCount = 0;
for (connectCount = 0; connectCount < CONNECT_TIME; connectCount++) { // try connect to agent 3 times.
if (!connect(clientSockFd, reinterpret_cast<struct sockaddr *>(&addr), sizeof(addr))) {
if (!connect(clientSockFd, reinterpret<struct sockaddr *>(&addr), sizeof(addr))) {
break;
}
std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_TIME)); // delay 10ms
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册