Lines Matching refs:sockfd
194 int sockfd; in rc_send_server() local
235 sockfd = socket (AF_INET, SOCK_DGRAM, 0); in rc_send_server()
236 if (sockfd < 0) in rc_send_server()
249 if (bind (sockfd, (struct sockaddr *) sin, length) < 0 || in rc_send_server()
250 getsockname (sockfd, (struct sockaddr *) sin, &length) < 0) in rc_send_server()
252 close (sockfd); in rc_send_server()
296 sendto (sockfd, (char *) auth, (unsigned int) total_length, (int) 0, in rc_send_server()
302 FD_SET (sockfd, &readfds); in rc_send_server()
303 if (select (sockfd + 1, &readfds, NULL, NULL, &authtime) < 0) in rc_send_server()
309 close (sockfd); in rc_send_server()
312 if (FD_ISSET (sockfd, &readfds)) in rc_send_server()
323 close (sockfd); in rc_send_server()
329 length = recvfrom (sockfd, (char *) recv_buffer, in rc_send_server()
337 close (sockfd); in rc_send_server()
348 close (sockfd); in rc_send_server()