Lines Matching defs:sockfd
95 int sockfd=-1, pollcount=2;
114 sockfd = xsocket(AF_INET, SOCK_STREAM, 0);
115 fcntl(sockfd, F_SETFD, FD_CLOEXEC);
117 setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &temp, sizeof(temp));
124 if (bind(sockfd, (struct sockaddr *)&address, sizeof(address)))
134 temp = connect(sockfd, (struct sockaddr *)&address, sizeof(address));
136 pollfds[0].fd = sockfd;
143 if (listen(sockfd, 5)) error_exit("listen");
145 getsockname(sockfd, (struct sockaddr *)&address, &len);
163 pollfds[0].fd = accept(sockfd, (struct sockaddr *)&address, &len);
228 close(sockfd);