Home | History | Annotate | Download | only in kpasswd

Lines Matching refs:sockets

721     int *sockets;
753 sockets = malloc(n * sizeof(*sockets));
754 if (sockets == NULL)
763 sockets[i] = socket(__ss.ss_family, SOCK_DGRAM, 0);
764 if (sockets[i] < 0)
766 if (bind(sockets[i], sa, sa_size) < 0) {
777 maxfd = max(maxfd, sockets[i]);
780 FD_SET(sockets[i], &real_fdset);
787 sockets = &fdz;
793 krb5_errx(context, 1, "No sockets!");
809 if (FD_ISSET(sockets[i], &fdset)) {
813 retx = recvfrom(sockets[i], buf, sizeof(buf), 0,
839 process(keytab, sockets[i],
856 close(sockets[i]);
857 free(sockets);