Searched refs:serv_addr (Results 1 – 4 of 4) sorted by relevance
/test/vts/agents/hal/ |
D | SocketServerForDriver.cpp | 37 struct sockaddr_in serv_addr; in RpcCallToRunner() local 53 bzero((char*)&serv_addr, sizeof(serv_addr)); in RpcCallToRunner() 54 serv_addr.sin_family = AF_INET; in RpcCallToRunner() 55 bcopy((char*)server->h_addr, (char*)&serv_addr.sin_addr.s_addr, in RpcCallToRunner() 57 serv_addr.sin_port = htons(runner_port_); in RpcCallToRunner() 59 if (connect(sockfd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) < 0) { in RpcCallToRunner() 79 struct sockaddr_un serv_addr; in StartSocketServerForDriver() local 99 bzero((char*) &serv_addr, sizeof(serv_addr)); in StartSocketServerForDriver() 100 serv_addr.sun_family = AF_UNIX; in StartSocketServerForDriver() 101 strcpy(serv_addr.sun_path, callback_socket_name.c_str()); in StartSocketServerForDriver() [all …]
|
D | TcpServerForRunner.cpp | 42 struct sockaddr_in serv_addr; in StartTcpServerForRunner() local 51 bzero((char*)&serv_addr, sizeof(serv_addr)); in StartTcpServerForRunner() 52 serv_addr.sin_family = AF_INET; in StartTcpServerForRunner() 53 serv_addr.sin_addr.s_addr = INADDR_ANY; in StartTcpServerForRunner() 54 serv_addr.sin_port = htons(0); in StartTcpServerForRunner() 56 if (::bind(sockfd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) == -1) { in StartTcpServerForRunner() 61 socklen_t sa_len = sizeof(serv_addr); in StartTcpServerForRunner() 62 if (getsockname(sockfd, (struct sockaddr*) &serv_addr, &sa_len) == -1) { in StartTcpServerForRunner() 67 LOG(DEBUG) << "TCP server port is " << (int)ntohs(serv_addr.sin_port); in StartTcpServerForRunner() 74 fprintf(fp, "%d", (int) ntohs(serv_addr.sin_port)); in StartTcpServerForRunner()
|
/test/vts/drivers/libdrivercomm/ |
D | VtsDriverCommUtil.cpp | 40 struct sockaddr_un serv_addr; in Connect() local 56 bzero((char*)&serv_addr, sizeof(serv_addr)); in Connect() 57 serv_addr.sun_family = AF_UNIX; in Connect() 58 strcpy(serv_addr.sun_path, socket_name.c_str()); in Connect() 60 if (connect(sockfd_, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) < 0) { in Connect()
|
/test/vts/drivers/hal/server/ |
D | SocketServer.cpp | 246 struct sockaddr_un serv_addr; in StartSocketServer() local 255 bzero((char*)&serv_addr, sizeof(serv_addr)); in StartSocketServer() 256 serv_addr.sun_family = AF_UNIX; in StartSocketServer() 257 strcpy(serv_addr.sun_path, socket_port_file.c_str()); in StartSocketServer() 261 if (::bind(sockfd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) == -1) { in StartSocketServer()
|