Lines Matching defs:sockfd
197 int sockfd;
220 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
226 pfd[0].fd = sockfd;
231 (void) close(sockfd);
246 if (sendmsg(sockfd, msg, 0) < 0) {
263 if (recvfrom(sockfd, reply, mtu, 0, NULL, NULL) < 0) {
305 (void) close(sockfd);
574 SLPError slp_tcp_read(int sockfd, char **reply) {
584 if ((nread = read(sockfd, p, 5)) < 0) {
610 if ((nread = read(sockfd, p, nleft)) < 0) {