• Home
  • Raw
  • Download

Lines Matching refs:server_fd

223 	int server_fd;  member
462 poll_fd->fd = client->server_fd; in server_fill_pollfd()
508 if (client->server_fd == -1) { in error_delay_next_action()
509 client->server_fd = timerfd_create(CLOCK_MONOTONIC, in error_delay_next_action()
511 if (client->server_fd == -1) { in error_delay_next_action()
522 rc = timerfd_settime(client->server_fd, 0, &timeout, NULL); in error_delay_next_action()
536 close(client->server_fd); in error_delay_next_action()
537 client->server_fd = -1; in error_delay_next_action()
576 if (client->server_fd == -1) { in wait_for_writable_next_action()
577 client->server_fd = socket(PF_UNIX, SOCK_SEQPACKET, 0); in wait_for_writable_next_action()
578 if (client->server_fd < 0) { in wait_for_writable_next_action()
590 cras_make_fd_nonblocking(client->server_fd); in wait_for_writable_next_action()
595 rc = connect(client->server_fd, (struct sockaddr *)&address, in wait_for_writable_next_action()
607 close(client->server_fd); in wait_for_writable_next_action()
608 client->server_fd = -1; in wait_for_writable_next_action()
618 cras_make_fd_blocking(client->server_fd); in wait_for_writable_next_action()
658 if (client->server_fd < 0) in first_message_next_action()
735 if (client->server_fd >= 0) { in disconnect_transition_action()
737 shutdown_and_close_socket(client->server_fd); in disconnect_transition_action()
739 close(client->server_fd); in disconnect_transition_action()
740 client->server_fd = -1; in disconnect_transition_action()
1572 rc = cras_send_with_fds(client->server_fd, &serv_msg, sizeof(serv_msg), in send_connect_message()
1676 rc = write(client->server_fd, &msg, sizeof(msg)); in client_thread_rm_stream()
1782 nread = cras_recv_with_fds(client->server_fd, buf, sizeof(buf), in handle_message_from_server()
2063 if (client->server_fd >= 0) { in client_thread()
2160 write_rc = write(client->server_fd, msg, msg->length); in write_message_to_server()
2219 (*client)->server_fd = -1; in cras_client_create_with_type()
3590 return cras_send_with_fds(client->server_fd, &msg, sizeof(msg), in cras_client_set_aec_dump()