Lines Matching defs:fd
275 * Returns "true" if the fd is ready, "false" if not.
293 if (FD_ISSET(sock, &readfds)) /* make sure it's our fd */
326 static int setNoDelay(int fd)
330 cc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
672 int fd;
688 fd = netState->listenSock;
689 if (fd >= 0)
690 FD_SET(fd, &readfds);
691 fd = netState->clientSock;
692 if (fd >= 0)
693 FD_SET(fd, &readfds);
694 fd = netState->wakePipe[0];
695 if (fd >= 0) {
696 FD_SET(fd, &readfds);
708 * EINTR, (2) open an additional fd ("wakePipe") and write to