Lines Matching refs:sock
86 int sock;
105 if (client->sock >= 0)
106 close(client->sock);
121 static int unix_sendmsg_fd(int sock, int fd)
141 return sendmsg(sock, &msgh, MSG_NOSIGNAL);
152 if (send(client->sock, msg, msg->length, 0) < 0)
379 if (unix_sendmsg_fd(client->sock, client->data_fd) < 0) {
418 if (unix_sendmsg_fd(client->sock, client->data_fd) < 0) {
784 if (unix_sendmsg_fd(client->sock, client->data_fd) < 0) {
1689 DBG("Unix client disconnected (fd=%d)", client->sock);
1696 len = recv(client->sock, buf, sizeof(buf), 0);
1790 client->sock = cli_sk;