Searched refs:clientFds (Results 1 – 1 of 1) sorted by relevance
/test/xts/acts/kernel_lite/net_posix/src/ |
D | ActsNetTest.cpp | 384 int clientFds[36]; in TcpServerLoopTask() local 389 clientFds[i] = accept(srvFd, (struct sockaddr *)&clnAddr, &clnAddrLen); in TcpServerLoopTask() 391 ntohs(clnAddr.sin_port), clientFds[i], i); in TcpServerLoopTask() 392 EXPECT_NE(-1, clientFds[i]); in TcpServerLoopTask() 399 ret = shutdown(clientFds[i], SHUT_RDWR); in TcpServerLoopTask() 401 ret = close(clientFds[i]); in TcpServerLoopTask() 422 int clientFds[10]; in TcpClientOnlyConnectTask() local 424 clientFds[index] = socket(AF_INET, SOCK_STREAM, 0); in TcpClientOnlyConnectTask() 425 … printf("[------][tcp client[%d]]create socket fd[%d],index[%d]\n", tId, clientFds[index], index); in TcpClientOnlyConnectTask() 426 EXPECT_NE(-1, clientFds[index]); in TcpClientOnlyConnectTask() [all …]
|