Lines Matching refs:readfds
1157 fd_set readFDs;
1164 FD_ZERO(&readFDs);
1165 FD_SET(pChgRec->NotifySD, &readFDs);
1171 while (0 < select(pChgRec->NotifySD + 1, &readFDs, (fd_set*) NULL, (fd_set*) NULL, &zeroTimeout));
1411 mDNSlocal void mDNSPosixAddToFDSet(int *nfds, fd_set *readfds, int s)
1414 FD_SET(s, readfds);
1417 mDNSexport void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout)
1427 if (m->p->unicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket4);
1429 if (m->p->unicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket6);
1433 if (info->multicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket4);
1435 if (info->multicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket6);
1452 mDNSexport void mDNSPosixProcessFDSet(mDNS *const m, fd_set *readfds)
1456 assert(readfds != NULL);
1459 readfds))
1461 FD_CLR(m->p->unicastSocket4, readfds);
1465 if (m->p->unicastSocket6 != -1 && FD_ISSET(m->p->unicastSocket6, readfds))
1467 FD_CLR(m->p->unicastSocket6, readfds);
1474 if (info->multicastSocket4 != -1 && FD_ISSET(info->multicastSocket4, readfds))
1476 FD_CLR(info->multicastSocket4, readfds);
1480 if (info->multicastSocket6 != -1 && FD_ISSET(info->multicastSocket6, readfds))
1482 FD_CLR(info->multicastSocket6, readfds);