Lines Matching refs:sockfd
51 int sockfd = socket(AF_UNIX, SOCK_STREAM, 0); in Create() local
52 if (sockfd < 0) { in Create()
60 if (bind(sockfd, reinterpret_cast<sockaddr*>(&serv_addr), sizeof(serv_addr)) < in Create()
65 if (listen(sockfd, 1) < 0) { in Create()
70 new UnixSocketServer(sockfd, server_path)); in Create()
76 int sockfd = accept(server_fd_, nullptr, nullptr); in AcceptConnection() local
77 if (sockfd < 0) { in AcceptConnection()
82 new UnixSocketConnection(sockfd)); in AcceptConnection()
87 int sockfd = socket(AF_UNIX, SOCK_STREAM, 0); in Connect() local
88 if (sockfd < 0) { in Connect()
96 if (connect(sockfd, reinterpret_cast<sockaddr*>(&serv_addr), in Connect()
102 new UnixSocketConnection(sockfd)); in Connect()