Lines Matching refs:listenfd
36 static socket_t listenfd = INVALID_SOCKET;
69 if (ValidSocket(listenfd))
80 listenfd = mi_milteropen(conn, backlog, rmsocket, smfi->xxfi_name);
81 if (!ValidSocket(listenfd))
89 if (!SM_FD_OK_SELECT(listenfd))
92 smfi->xxfi_name, listenfd, FD_SETSIZE);
597 if (ValidSocket(listenfd))
606 fstat(listenfd, &sockinfo) == 0 &&
614 (void) closesocket(listenfd);
615 listenfd = INVALID_SOCKET;
752 if (!ValidSocket(listenfd))
756 "%s: listenfd=%d corrupted, terminating, errno=%d",
757 smfi->xxfi_name, listenfd, errno);
763 FD_RD_INIT(listenfd, rds, excs);
766 r = FD_RD_READY(listenfd, rds, excs, &chktime);
792 if (!FD_IS_RD_RDY(listenfd, rds, excs))
805 connfd = accept(listenfd, (struct sockaddr *) &cliaddr,