Lines Matching refs:oc
616 OsCommPtr oc; in AllocNewConnection() local
619 oc = malloc(sizeof(OsCommRec)); in AllocNewConnection()
620 if (!oc) in AllocNewConnection()
622 oc->trans_conn = trans_conn; in AllocNewConnection()
623 oc->fd = fd; in AllocNewConnection()
624 oc->input = (ConnectionInputPtr) NULL; in AllocNewConnection()
625 oc->output = (ConnectionOutputPtr) NULL; in AllocNewConnection()
626 oc->auth_id = None; in AllocNewConnection()
627 oc->conn_time = conn_time; in AllocNewConnection()
628 oc->flags = 0; in AllocNewConnection()
629 if (!(client = NextAvailableClient((void *) oc))) { in AllocNewConnection()
630 free(oc); in AllocNewConnection()
666 OsCommPtr oc; in EstablishNewConnections() local
674 oc = (OsCommPtr) (client->osPrivate); in EstablishNewConnections()
675 if ((oc && (oc->conn_time != 0) && in EstablishNewConnections()
676 (connect_time - oc->conn_time) >= TimeOutValue) || in EstablishNewConnections()
764 CloseDownFileDescriptor(OsCommPtr oc) in CloseDownFileDescriptor() argument
766 if (oc->trans_conn) { in CloseDownFileDescriptor()
767 int connection = oc->fd; in CloseDownFileDescriptor()
772 _XSERVTransDisconnect(oc->trans_conn); in CloseDownFileDescriptor()
773 _XSERVTransClose(oc->trans_conn); in CloseDownFileDescriptor()
774 oc->trans_conn = NULL; in CloseDownFileDescriptor()
775 oc->fd = -1; in CloseDownFileDescriptor()
787 OsCommPtr oc = (OsCommPtr) client->osPrivate; in CloseDownConnection() local
792 if (oc->output) in CloseDownConnection()
793 FlushClient(client, oc, (char *) NULL, 0); in CloseDownConnection()
794 CloseDownFileDescriptor(oc); in CloseDownConnection()
795 FreeOsBuffers(oc); in CloseDownConnection()
915 OsCommPtr oc = (OsCommPtr) client->osPrivate; in IgnoreClient() local
924 oc->flags |= OS_COMM_IGNORED; in IgnoreClient()
936 OsCommPtr oc = (OsCommPtr) client->osPrivate; in AttendClient() local
950 oc->flags &= ~OS_COMM_IGNORED; in AttendClient()
965 OsCommPtr oc = (OsCommPtr) client->osPrivate; in MakeClientGrabImpervious() local
967 oc->flags |= OS_COMM_GRAB_IMPERVIOUS; in MakeClientGrabImpervious()
984 OsCommPtr oc = (OsCommPtr) client->osPrivate; in MakeClientGrabPervious() local
986 oc->flags &= ~OS_COMM_GRAB_IMPERVIOUS; in MakeClientGrabPervious()
1074 OsCommPtr oc = (OsCommPtr) client->osPrivate; in listen_to_client() local
1076 if (oc->flags & OS_COMM_IGNORED) in listen_to_client()
1085 if (oc->flags & OS_COMM_GRAB_IMPERVIOUS) in listen_to_client()
1094 OsCommPtr oc = (OsCommPtr) client->osPrivate; in set_poll_client() local
1096 if (oc->trans_conn) { in set_poll_client()
1098 ospoll_listen(server_poll, oc->trans_conn->fd, X_NOTIFY_READ); in set_poll_client()
1100 ospoll_mute(server_poll, oc->trans_conn->fd, X_NOTIFY_READ); in set_poll_client()