Lines Matching refs:serv_addr
31 bool is_abstract, sockaddr_un& serv_addr) { in CreateUnixSocketAddress() argument
32 memset(&serv_addr, 0, sizeof(serv_addr)); in CreateUnixSocketAddress()
33 serv_addr.sun_family = AF_UNIX; in CreateUnixSocketAddress()
34 size_t sun_path_len = sizeof(serv_addr.sun_path); in CreateUnixSocketAddress()
35 char* p = serv_addr.sun_path; in CreateUnixSocketAddress()
56 sockaddr_un serv_addr; in Create() local
57 if (!CreateUnixSocketAddress(server_path, is_abstract, serv_addr)) { in Create()
60 if (bind(sockfd, reinterpret_cast<sockaddr*>(&serv_addr), sizeof(serv_addr)) < in Create()
92 sockaddr_un serv_addr; in Connect() local
93 if (!CreateUnixSocketAddress(server_path, is_abstract, serv_addr)) { in Connect()
96 if (connect(sockfd, reinterpret_cast<sockaddr*>(&serv_addr), in Connect()
97 sizeof(serv_addr)) < 0) { in Connect()