• Home
  • Raw
  • Download

Lines Matching refs:server_fd

221 	int server_fd;  member
369 poll_fd->fd = client->server_fd; in server_fill_pollfd()
416 if (client->server_fd == -1) { in error_delay_next_action()
417 client->server_fd = timerfd_create( in error_delay_next_action()
420 if (client->server_fd == -1) { in error_delay_next_action()
431 rc = timerfd_settime(client->server_fd, 0, &timeout, NULL); in error_delay_next_action()
445 close(client->server_fd); in error_delay_next_action()
446 client->server_fd = -1; in error_delay_next_action()
485 if (client->server_fd == -1) { in wait_for_writable_next_action()
486 client->server_fd = socket(PF_UNIX, SOCK_SEQPACKET, 0); in wait_for_writable_next_action()
487 if (client->server_fd < 0) { in wait_for_writable_next_action()
500 cras_make_fd_nonblocking(client->server_fd); in wait_for_writable_next_action()
505 rc = connect(client->server_fd, (struct sockaddr *)&address, in wait_for_writable_next_action()
517 close(client->server_fd); in wait_for_writable_next_action()
518 client->server_fd = -1; in wait_for_writable_next_action()
529 cras_make_fd_blocking(client->server_fd); in wait_for_writable_next_action()
569 if (client->server_fd < 0) in first_message_next_action()
646 if (client->server_fd >= 0) { in disconnect_transition_action()
648 shutdown_and_close_socket(client->server_fd); in disconnect_transition_action()
650 close(client->server_fd); in disconnect_transition_action()
651 client->server_fd = -1; in disconnect_transition_action()
1519 rc = cras_send_with_fds(client->server_fd, &serv_msg, sizeof(serv_msg), in send_connect_message()
1612 rc = write(client->server_fd, &msg, sizeof(msg)); in client_thread_rm_stream()
1711 nread = cras_recv_with_fds(client->server_fd, buf, sizeof(buf), in handle_message_from_server()
1997 if (client->server_fd >= 0) { in client_thread()
2095 write_rc = write(client->server_fd, msg, msg->length); in write_message_to_server()
2135 (*client)->server_fd = -1; in cras_client_create()
3354 return cras_send_with_fds(client->server_fd, &msg, in cras_client_set_aec_dump()