Lines Matching refs:serv_addr
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()
104 if (::bind(sockfd, (struct sockaddr*) &serv_addr, sizeof(serv_addr)) < 0) { in StartSocketServerForDriver()