Home
last modified time | relevance | path

Searched refs:nbsock (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/ntp/ntpdate/
H A Dntpdate.c117 int nbsock; /* the number of sockets used */ variable
573 nfound = poll(rdfdes, (unsigned int)nbsock, timeout.tv_sec * 1000); in ntpdatemain()
1738 for(nbsock = 0; (nbsock < MAX_AF) && res ; res = res->ai_next) { in init_io()
1740 fd[nbsock] = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in init_io()
1741 if (fd[nbsock] == SOCKET_ERROR) { in init_io()
1756 if (setsockopt(fd[nbsock], SOL_SOCKET, SO_REUSEADDR, (void*) &optval, sizeof(optval)) < 0) { in init_io()
1764 if (setsockopt(fd[nbsock], IPPROTO_IPV6, IPV6_V6ONLY, (void*) &optval, sizeof(optval)) < 0) { in init_io()
1770 fd_family[nbsock] = res->ai_family; in init_io()
1779 rc = bind(fd[nbsock], &addr.sa, SOCKLEN(&addr)); in init_io()
1790 fdmask[nbsock].fd = fd[nbsock]; in init_io()
[all …]