Lines Matching defs:connfd
719 socket_t connfd = INVALID_SOCKET;
806 connfd = accept(listenfd, (struct sockaddr *) &cliaddr,
816 if (ValidSocket(connfd) &&
823 (void) closesocket(connfd);
824 connfd = INVALID_SOCKET;
829 if (ValidSocket(connfd) && !SM_FD_OK_SELECT(connfd))
831 (void) closesocket(connfd);
832 connfd = INVALID_SOCKET;
836 if (!ValidSocket(connfd))
880 dupfd = fcntl(connfd, F_DUPFD, 256);
883 close(connfd);
884 connfd = dupfd;
890 ** Need to set close-on-exec for connfd in case a user's
895 if ((fdflags = fcntl(connfd, F_GETFD, 0)) == -1 ||
896 fcntl(connfd, F_SETFD, fdflags | FD_CLOEXEC) == -1)
903 if (setsockopt(connfd, SOL_SOCKET, SO_KEEPALIVE,
913 (void) closesocket(connfd);
928 ctx->ctx_sd = connfd;
967 (void) closesocket(connfd);