Home | History | Annotate | Download | only in named

Lines Matching refs:sockfd

62 	int sockfd;
94 sockfd = socket(AF_INET, SOCK_DGRAM, 0);
95 RUNTIME_CHECK(sockfd != -1);
128 close(sockfd);
142 sent = sendto(sockfd, buf, length, 0,
150 (void)recvfrom(sockfd, buf, 65536, MSG_DONTWAIT, NULL, NULL);
161 close(sockfd);
272 int sockfd;
338 sockfd = socket(AF_INET, SOCK_DGRAM, 0);
339 RUNTIME_CHECK(sockfd != -1);
375 close(sockfd);
412 sent = sendto(sockfd, respacket, sizeof(respacket), 0,
490 FD_SET(sockfd, &fds);
493 max = (listenfd > sockfd ? listenfd : sockfd) + 1;
498 if (FD_ISSET(sockfd, &fds)) {
504 (void)recvfrom(sockfd, buf, 65536, 0, NULL,
576 close(sockfd);
608 int sockfd;
689 sockfd = socket(AF_INET, SOCK_STREAM, 0);
691 RUNTIME_CHECK(sockfd != -1);
692 RUNTIME_CHECK(setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &yes,
696 r = connect(sockfd, (struct sockaddr *)&servaddr,
706 sent = write(sockfd, buf, length);
709 close(sockfd);
719 close(sockfd);