Lines Matching refs:readfds
1652 mDNSlocal void mDNSPosixAddToFDSet(int *nfds, fd_set *readfds, int s)
1655 FD_SET(s, readfds);
1658 mDNSexport void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout)
1668 if (m->p->unicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket4);
1670 if (m->p->unicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket6);
1674 if (info->multicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket4);
1676 if (info->multicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket6);
1693 mDNSexport void mDNSPosixProcessFDSet(mDNS *const m, fd_set *readfds)
1697 assert(readfds != NULL);
1700 if (m->p->unicastSocket4 != -1 && FD_ISSET(m->p->unicastSocket4, readfds))
1702 FD_CLR(m->p->unicastSocket4, readfds);
1706 if (m->p->unicastSocket6 != -1 && FD_ISSET(m->p->unicastSocket6, readfds))
1708 FD_CLR(m->p->unicastSocket6, readfds);
1715 if (info->multicastSocket4 != -1 && FD_ISSET(info->multicastSocket4, readfds))
1717 FD_CLR(info->multicastSocket4, readfds);
1721 if (info->multicastSocket6 != -1 && FD_ISSET(info->multicastSocket6, readfds))
1723 FD_CLR(info->multicastSocket6, readfds);