Home | History | Annotate | Download | only in radius

Lines Matching defs:sockfd

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