Lines Matching refs:server_instance
120 } server_instance; variable
137 DL_DELETE(server_instance.clients_head, client); in remove_client()
138 server_instance.num_clients--; in remove_client()
244 DL_SEARCH_SCALAR(server_instance.clients_head, out, id, in handle_new_connection()
245 server_instance.next_client_id); in handle_new_connection()
246 poll_client->id = server_instance.next_client_id; in handle_new_connection()
247 server_instance.next_client_id++; in handle_new_connection()
267 DL_APPEND(server_instance.clients_head, poll_client); in handle_new_connection()
268 server_instance.num_clients++; in handle_new_connection()
271 send_client_list_to_clients(&server_instance); in handle_new_connection()
310 server_instance.num_client_callbacks++; in add_select_fd()
369 server_instance.num_client_callbacks--; in cleanup_select_fds()
447 server_instance.next_client_id = RESERVED_CLIENT_IDS; in cras_server_init()
459 &server_instance); in cras_server_init()
460 cras_system_set_add_task_handler(add_task, &server_instance); in cras_server_init()
465 server_instance.server_sockets[conn_type].fd = -1; in cras_server_init()
545 &server_instance.server_sockets[conn_type]); in cleanup_server_sockets()
603 conn_type, &server_instance.server_sockets[conn_type]); in cras_server_run()
621 server_instance.num_clients + in cras_server_run()
622 server_instance.num_client_callbacks; in cras_server_run()
632 server_instance.server_sockets[conn_type].fd; in cras_server_run()
637 DL_FOREACH (server_instance.clients_head, elm) { in cras_server_run()
643 DL_FOREACH (server_instance.client_callbacks, client_cb) { in cras_server_run()
652 tasks = server_instance.system_tasks; in cras_server_run()
653 server_instance.system_tasks = NULL; in cras_server_run()
666 if (server_instance.system_tasks) in cras_server_run()
682 &server_instance in cras_server_run()
687 DL_FOREACH (server_instance.clients_head, elm) in cras_server_run()
691 DL_FOREACH (server_instance.client_callbacks, client_cb) in cras_server_run()
697 cleanup_select_fds(&server_instance); in cras_server_run()
718 DL_FOREACH (server_instance.clients_head, client) in cras_server_send_to_all_clients()