Home
last modified time | relevance | path

Searched refs:sockfd (Results 1 – 4 of 4) sorted by relevance

/test/vts/agents/hal/
DSocketServerForDriver.cpp40 int sockfd; in RpcCallToRunner() local
41 sockfd = socket(AF_INET, SOCK_STREAM, 0); in RpcCallToRunner()
42 if (sockfd < 0) { in RpcCallToRunner()
59 if (connect(sockfd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) < 0) { in RpcCallToRunner()
65 VtsDriverCommUtil util(sockfd); in RpcCallToRunner()
92 int sockfd; in StartSocketServerForDriver() local
93 sockfd = socket(PF_UNIX, SOCK_STREAM, 0); in StartSocketServerForDriver()
94 if (sockfd < 0) { in StartSocketServerForDriver()
104 if (::bind(sockfd, (struct sockaddr*) &serv_addr, sizeof(serv_addr)) < 0) { in StartSocketServerForDriver()
109 if (listen(sockfd, 5) < 0) { in StartSocketServerForDriver()
[all …]
DTcpServerForRunner.cpp40 int sockfd; in StartTcpServerForRunner() local
45 sockfd = socket(AF_INET, SOCK_STREAM, 0); in StartTcpServerForRunner()
46 if (sockfd < 0) { in StartTcpServerForRunner()
56 if (::bind(sockfd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) == -1) { in StartTcpServerForRunner()
62 if (getsockname(sockfd, (struct sockaddr*) &serv_addr, &sa_len) == -1) { in StartTcpServerForRunner()
78 if (listen(sockfd, 5) == -1) { in StartTcpServerForRunner()
85 int newsockfd = ::accept(sockfd, (struct sockaddr*)&cli_addr, &clilen); in StartTcpServerForRunner()
95 close(sockfd); in StartTcpServerForRunner()
/test/vts/drivers/libdrivercomm/
DVtsDriverCommUtil.h33 explicit VtsDriverCommUtil(int sockfd) : sockfd_(sockfd) {} in VtsDriverCommUtil() argument
43 void SetSockfd(int sockfd) { in SetSockfd() argument
44 sockfd_ = sockfd; in SetSockfd()
/test/vts/drivers/hal/server/
DSocketServer.cpp243 int sockfd; in StartSocketServer() local
248 sockfd = socket(PF_UNIX, SOCK_STREAM, 0); in StartSocketServer()
249 if (sockfd < 0) { in StartSocketServer()
261 if (::bind(sockfd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) == -1) { in StartSocketServer()
268 listen(sockfd, 5); in StartSocketServer()
273 int newsockfd = ::accept(sockfd, (struct sockaddr*)&cli_addr, &clilen); in StartSocketServer()
282 close(sockfd); in StartSocketServer()