Lines Matching refs:src
31 static void test_io_channel_set_socket_bufs(QIOChannel *src, in test_io_channel_set_socket_bufs() argument
40 setsockopt(((QIOChannelSocket *)src)->fd, in test_io_channel_set_socket_bufs()
55 QIOChannel **src, in test_io_channel_setup_sync() argument
73 *src = QIO_CHANNEL(qio_channel_socket_new()); in test_io_channel_setup_sync()
75 QIO_CHANNEL_SOCKET(*src), connect_addr, &error_abort); in test_io_channel_setup_sync()
76 qio_channel_set_delay(*src, false); in test_io_channel_setup_sync()
82 test_io_channel_set_socket_bufs(*src, *dst); in test_io_channel_setup_sync()
106 QIOChannel **src, in test_io_channel_setup_async() argument
135 *src = QIO_CHANNEL(qio_channel_socket_new()); in test_io_channel_setup_async()
138 QIO_CHANNEL_SOCKET(*src), connect_addr, in test_io_channel_setup_async()
150 qio_channel_set_delay(*src, false); in test_io_channel_setup_async()
151 test_io_channel_set_socket_bufs(*src, *dst); in test_io_channel_setup_async()
176 QIOChannel *src, *dst, *srv; in test_io_channel() local
180 &srv, &src, &dst); in test_io_channel()
184 qio_channel_has_feature(src, QIO_CHANNEL_FEATURE_FD_PASS)); in test_io_channel()
188 g_assert(qio_channel_has_feature(src, QIO_CHANNEL_FEATURE_SHUTDOWN)); in test_io_channel()
194 qio_channel_test_run_threads(test, true, src, dst); in test_io_channel()
201 object_unref(OBJECT(src)); in test_io_channel()
209 &srv, &src, &dst); in test_io_channel()
213 qio_channel_has_feature(src, QIO_CHANNEL_FEATURE_FD_PASS)); in test_io_channel()
217 g_assert(qio_channel_has_feature(src, QIO_CHANNEL_FEATURE_SHUTDOWN)); in test_io_channel()
221 qio_channel_test_run_threads(test, false, src, dst); in test_io_channel()
226 qio_channel_close(src, &error_abort); in test_io_channel()
230 object_unref(OBJECT(src)); in test_io_channel()
241 &srv, &src, &dst); in test_io_channel()
245 qio_channel_has_feature(src, QIO_CHANNEL_FEATURE_FD_PASS)); in test_io_channel()
249 g_assert(qio_channel_has_feature(src, QIO_CHANNEL_FEATURE_SHUTDOWN)); in test_io_channel()
255 qio_channel_test_run_threads(test, true, src, dst); in test_io_channel()
262 object_unref(OBJECT(src)); in test_io_channel()
270 &srv, &src, &dst); in test_io_channel()
274 qio_channel_has_feature(src, QIO_CHANNEL_FEATURE_FD_PASS)); in test_io_channel()
278 g_assert(qio_channel_has_feature(src, QIO_CHANNEL_FEATURE_SHUTDOWN)); in test_io_channel()
282 qio_channel_test_run_threads(test, false, src, dst); in test_io_channel()
289 qio_channel_close(src, &error_abort); in test_io_channel()
293 object_unref(OBJECT(src)); in test_io_channel()
413 QIOChannel *src, *dst, *srv; in test_io_channel_unix_fd_pass() local
437 test_io_channel_setup_sync(listen_addr, connect_addr, &srv, &src, &dst); in test_io_channel_unix_fd_pass()
447 g_assert(qio_channel_has_feature(src, QIO_CHANNEL_FEATURE_FD_PASS)); in test_io_channel_unix_fd_pass()
450 qio_channel_writev_full(src, in test_io_channel_unix_fd_pass()
490 object_unref(OBJECT(src)); in test_io_channel_unix_fd_pass()