Lines Matching refs:connfd
580 int connfd; in accept_client() local
585 connfd = accept(servfd, (struct sockaddr *)&cliaddr, &clilen); in accept_client()
586 if (connfd == -1) in accept_client()
588 if (get_client_ident(connfd, pid, locale, locale_len, in accept_client()
590 (void) shutdown(connfd, SHUT_RDWR); in accept_client()
591 (void) close(connfd); in accept_client()
594 (void) write(connfd, "OK\n", 3); in accept_client()
595 return (connfd); in accept_client()
601 int connfd; in reject_client() local
607 connfd = accept(servfd, (struct sockaddr *)&cliaddr, &clilen); in reject_client()
612 if (get_client_ident(connfd, NULL, NULL, 0, NULL) == 0) { in reject_client()
615 (void) write(connfd, nak, strlen(nak)); in reject_client()
617 (void) shutdown(connfd, SHUT_RDWR); in reject_client()
618 (void) close(connfd); in reject_client()