Lines Matching refs:sioc
386 QIO_CHANNEL(s->sioc)); in tcp_chr_free_connection()
392 object_unref(OBJECT(s->sioc)); in tcp_chr_free_connection()
393 s->sioc = NULL; in tcp_chr_free_connection()
564 struct sockaddr_storage *ss = &s->sioc->localAddr; in qemu_chr_compute_filename()
565 struct sockaddr_storage *ps = &s->sioc->remoteAddr; in qemu_chr_compute_filename()
566 socklen_t ss_len = s->sioc->localAddrLen; in qemu_chr_compute_filename()
567 socklen_t ps_len = s->sioc->remoteAddrLen; in qemu_chr_compute_filename()
877 QIOChannelSocket *sioc) in tcp_chr_set_client_ioc_name() argument
884 qio_channel_set_name(QIO_CHANNEL(sioc), name); in tcp_chr_set_client_ioc_name()
889 static int tcp_chr_new_client(Chardev *chr, QIOChannelSocket *sioc) in tcp_chr_new_client() argument
897 s->ioc = QIO_CHANNEL(sioc); in tcp_chr_new_client()
898 object_ref(OBJECT(sioc)); in tcp_chr_new_client()
899 s->sioc = sioc; in tcp_chr_new_client()
900 object_ref(OBJECT(sioc)); in tcp_chr_new_client()
929 QIOChannelSocket *sioc; in tcp_chr_add_client() local
936 sioc = qio_channel_socket_new_fd(fd, NULL); in tcp_chr_add_client()
937 if (!sioc) { in tcp_chr_add_client()
941 tcp_chr_set_client_ioc_name(chr, sioc); in tcp_chr_add_client()
945 QIO_CHANNEL(sioc)); in tcp_chr_add_client()
947 ret = tcp_chr_new_client(chr, sioc); in tcp_chr_add_client()
948 object_unref(OBJECT(sioc)); in tcp_chr_add_client()
973 QIOChannelSocket *sioc = qio_channel_socket_new(); in tcp_chr_connect_client_sync() local
975 tcp_chr_set_client_ioc_name(chr, sioc); in tcp_chr_connect_client_sync()
976 if (qio_channel_socket_connect_sync(sioc, s->addr, errp) < 0) { in tcp_chr_connect_client_sync()
978 object_unref(OBJECT(sioc)); in tcp_chr_connect_client_sync()
984 QIO_CHANNEL(sioc)); in tcp_chr_connect_client_sync()
986 tcp_chr_new_client(chr, sioc); in tcp_chr_connect_client_sync()
987 object_unref(OBJECT(sioc)); in tcp_chr_connect_client_sync()
995 QIOChannelSocket *sioc; in tcp_chr_accept_server_sync() local
999 sioc = qio_net_listener_wait_client(s->listener); in tcp_chr_accept_server_sync()
1000 tcp_chr_set_client_ioc_name(chr, sioc); in tcp_chr_accept_server_sync()
1004 QIO_CHANNEL(sioc)); in tcp_chr_accept_server_sync()
1006 tcp_chr_new_client(chr, sioc); in tcp_chr_accept_server_sync()
1007 object_unref(OBJECT(sioc)); in tcp_chr_accept_server_sync()
1132 QIOChannelSocket *sioc = QIO_CHANNEL_SOCKET(qio_task_get_source(task)); in qemu_chr_socket_connected() local
1144 QIO_CHANNEL(sioc)); in qemu_chr_socket_connected()
1151 tcp_chr_new_client(chr, sioc); in qemu_chr_socket_connected()
1154 object_unref(OBJECT(sioc)); in qemu_chr_socket_connected()
1174 QIOChannelSocket *sioc; in tcp_chr_connect_client_async() local
1177 sioc = qio_channel_socket_new(); in tcp_chr_connect_client_async()
1178 tcp_chr_set_client_ioc_name(chr, sioc); in tcp_chr_connect_client_async()
1182 QIO_CHANNEL(sioc)); in tcp_chr_connect_client_async()
1193 s->connect_task = qio_task_new(OBJECT(sioc), in tcp_chr_connect_client_async()
1251 s->addr = socket_local_address(s->listener->sioc[0]->fd, errp); in qmp_chardev_open_socket_server()