/libuv/test/ |
H A D | test-tcp-write-to-half-open-connection.c | 33 static void alloc_cb(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf); 68 static void alloc_cb(uv_handle_t* handle, in alloc_cb() 82 uv_close((uv_handle_t*)&tcp_server, NULL); in read_cb() 83 uv_close((uv_handle_t*)&tcp_peer, NULL); in read_cb() 95 uv_close((uv_handle_t*)&tcp_client, NULL); in connect_cb()
|
H A D | test-poll-oob.c | 62 uv_close((uv_handle_t*) &server_handle, NULL); in idle_cb() 63 uv_close((uv_handle_t*) &client_handle, NULL); in idle_cb() 64 uv_close((uv_handle_t*) &peer_handle, NULL); in idle_cb() 65 uv_close((uv_handle_t*) idle, NULL); in idle_cb() 73 ASSERT_OK(uv_fileno((uv_handle_t*)handle, &fd)); in poll_cb() 140 ASSERT_OK(uv_fileno((uv_handle_t*) &peer_handle, &server_fd)); in connection_cb()
|
H A D | test-udp-recv-in-a-row.c | 40 static void alloc_cb(uv_handle_t* handle, in alloc_cb() 73 uv_close((uv_handle_t*) &client, NULL); in check_cb() 74 uv_close((uv_handle_t*) &check_handle, NULL); in check_cb() 75 uv_close((uv_handle_t*) &server, NULL); in check_cb()
|
H A D | test-iouring-pollhup.c | 42 static void alloc_buffer(uv_handle_t* handle, in alloc_buffer() 56 uv_close((uv_handle_t*) &p2, NULL); in read_data2() 57 uv_close((uv_handle_t*) &idle_handle, NULL); in read_data2() 82 uv_close((uv_handle_t*) stream, NULL); in read_data()
|
H A D | test-walk-handles.c | 33 static void walk_cb(uv_handle_t* handle, void* arg) { in walk_cb() 36 if (handle == (uv_handle_t*)&timer) { in walk_cb() 48 uv_close((uv_handle_t*)handle, NULL); in timer_cb()
|
H A D | test-udp-open.c | 83 static void alloc_cb(uv_handle_t* handle, in alloc_cb() 93 static void close_cb(uv_handle_t* handle) { in close_cb() 125 uv_close((uv_handle_t*) handle, close_cb); in recv_cb() 134 uv_close((uv_handle_t*)req->handle, close_cb); in send_cb() 178 uv_close((uv_handle_t*) &client2, NULL); in TEST_IMPL() 215 uv_close((uv_handle_t*) &client, NULL); in TEST_IMPL() 245 uv_close((uv_handle_t*) &client, NULL); in TEST_IMPL() 342 uv_close((uv_handle_t*)&handle, NULL); in TEST_IMPL()
|
H A D | test-pipe-getsockname.c | 42 static void pipe_close_cb(uv_handle_t* handle) { in pipe_close_cb() 43 ASSERT_NE(handle == (uv_handle_t*) &pipe_client || in pipe_close_cb() 44 handle == (uv_handle_t*) &pipe_server, 0); in pipe_close_cb() 76 uv_close((uv_handle_t*) &pipe_client, pipe_close_cb); in pipe_client_connect_cb() 77 uv_close((uv_handle_t*) &pipe_server, pipe_close_cb); in pipe_client_connect_cb() 216 uv_close((uv_handle_t*) &pipe_server, pipe_close_cb); in TEST_IMPL() 223 uv_close((uv_handle_t*) &pipe_client, pipe_close_cb); in TEST_IMPL() 279 uv_close((uv_handle_t*)&pipe_client, pipe_close_cb); in TEST_IMPL()
|
H A D | test-tcp-reuseport.c | 75 static void on_close(uv_handle_t* handle) { in on_close() 90 uv_close((uv_handle_t*) timer, NULL); in ticktack() 92 uv_close((uv_handle_t*) &main_handle, NULL); in ticktack() 94 uv_close((uv_handle_t*) &thread_handle, NULL); in ticktack() 107 uv_close((uv_handle_t*) client, on_close); in on_connection() 126 uv_close((uv_handle_t*) req->handle, NULL); in on_connect()
|
H A D | test-udp-alloc-cb-fail.c | 44 static void sv_alloc_cb(uv_handle_t* handle, in sv_alloc_cb() 54 static void cl_alloc_cb(uv_handle_t* handle, in cl_alloc_cb() 61 static void close_cb(uv_handle_t* handle) { in close_cb() 79 uv_close((uv_handle_t*) handle, close_cb); in cl_recv_cb() 102 uv_close((uv_handle_t*) req->handle, close_cb); in sv_send_cb()
|
H A D | test-udp-try-send.c | 40 static void alloc_cb(uv_handle_t* handle, in alloc_cb() 51 static void close_cb(uv_handle_t* handle) { in close_cb() 74 uv_close((uv_handle_t*) handle, close_cb); in sv_recv_cb() 75 uv_close((uv_handle_t*) &client, close_cb); in sv_recv_cb()
|
H A D | test-tty.c | 139 uv_close((uv_handle_t*) &tty_in, NULL); in TEST_IMPL() 140 uv_close((uv_handle_t*) &tty_out, NULL); in TEST_IMPL() 150 static void tty_raw_alloc(uv_handle_t* handle, size_t size, uv_buf_t* buf) { in tty_raw_alloc() 159 uv_close((uv_handle_t*) tty_in, NULL); in tty_raw_read() 256 uv_close((uv_handle_t*) &tty_out, NULL); in TEST_IMPL() 302 uv_close((uv_handle_t*) &tty_out, NULL); in TEST_IMPL() 384 uv_close((uv_handle_t*) &tty, NULL); in TEST_IMPL() 395 uv_close((uv_handle_t*) &tty_ro, NULL); in TEST_IMPL() 406 uv_close((uv_handle_t*) &tty_wo, NULL); in TEST_IMPL() 459 uv_close((uv_handle_t*) &slave_tty, NULL); in TEST_IMPL() [all …]
|
H A D | test-pipe-connect-prepare.c | 44 static void close_cb(uv_handle_t* handle) { in close_cb() 53 uv_close((uv_handle_t*)&prepare_handle, close_cb); in connect_cb() 54 uv_close((uv_handle_t*)&pipe_handle, close_cb); in connect_cb()
|
H A D | test-udp-send-immediate.c | 40 static void alloc_cb(uv_handle_t* handle, in alloc_cb() 51 static void close_cb(uv_handle_t* handle) { in close_cb() 91 uv_close((uv_handle_t*) &server, close_cb); in sv_recv_cb() 92 uv_close((uv_handle_t*) &client, close_cb); in sv_recv_cb()
|
H A D | test-poll.c | 178 static void connection_close_cb(uv_handle_t* handle) { in connection_close_cb() 202 uv_close((uv_handle_t*) &context->poll_handle, connection_close_cb); in destroy_connection_context() 277 if (!uv_is_active((uv_handle_t*) &context->timer_handle)) { 376 if (!uv_is_active((uv_handle_t*) &context->timer_handle)) { 436 ASSERT_EQ(1, uv_is_active((uv_handle_t*) handle)); 438 ASSERT_OK(uv_is_active((uv_handle_t*) handle)); 448 ASSERT_OK(uv_is_active((uv_handle_t*) timer)); 481 static void server_close_cb(uv_handle_t* handle) { 488 uv_close((uv_handle_t*) &context->poll_handle, server_close_cb); 668 uv_close((uv_handle_t*) &poll_handle, NULL); [all …]
|
H A D | test-ping-pong.c | 55 static void alloc_cb(uv_handle_t* handle, size_t size, uv_buf_t* buf) { in alloc_cb() 61 static void ponger_on_close(uv_handle_t* handle) { in ponger_on_close() 69 static void pinger_on_close(uv_handle_t* handle) { in pinger_on_close() 74 if (handle == (uv_handle_t*) &pinger->stream.tcp) { in pinger_on_close() 77 uv_close((uv_handle_t*) &pinger->stream.tcp, ponger_on_close); in pinger_on_close() 135 uv_close((uv_handle_t*) stream, pinger_on_close); in pinger_read_cb() 154 uv_close((uv_handle_t*) stream, pinger_on_close); in pinger_read_cb() 176 uv_close((uv_handle_t*) stream, ponger_on_close); in ponger_read_cb() 204 ASSERT_OK(uv_is_closing((uv_handle_t *) req->handle)); in pinger_on_connect()
|
H A D | test-udp-send-unreachable.c | 44 static void alloc_cb(uv_handle_t* handle, in alloc_cb() 56 static void close_cb(uv_handle_t* handle) { in close_cb() 99 uv_close((uv_handle_t*) &client, close_cb); in timer_cb() 101 uv_close((uv_handle_t*) &client2, close_cb); in timer_cb() 102 uv_close((uv_handle_t*) h, close_cb); in timer_cb()
|
H A D | benchmark-pound.c | 78 static void alloc_cb(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf); 81 static void close_cb(uv_handle_t* handle); 84 static void alloc_cb(uv_handle_t* handle, in alloc_cb() 96 uv_close((uv_handle_t*)req->handle, close_cb); in after_write() 112 uv_close((uv_handle_t*)req->handle, close_cb); in connect_cb() 146 uv_close((uv_handle_t*)stream, close_cb); in read_cb() 161 static void close_cb(uv_handle_t* handle) { in close_cb()
|
H A D | benchmark-tcp-write-batch.c | 50 static void close_cb(uv_handle_t* handle); 84 uv_close((uv_handle_t*)req->handle, close_cb); in shutdown_cb() 91 static void close_cb(uv_handle_t* handle) { in close_cb() 92 ASSERT_PTR_EQ(handle, (uv_handle_t*)&tcp_client); in close_cb()
|
H A D | test-tcp-read-stop-start.c | 38 uv_close((uv_handle_t*)req->handle, NULL); /* Close immediately */ in on_write_close_immediately() 56 static void on_alloc(uv_handle_t* handle, in on_alloc() 82 uv_close((uv_handle_t*)stream, NULL); in on_read2() 83 uv_close((uv_handle_t*)&server, NULL); in on_read2()
|
H A D | test-udp-mmsg.c | 45 static void alloc_cb(uv_handle_t* handle, in alloc_cb() 64 static void close_cb(uv_handle_t* handle) { in close_cb() 98 uv_close((uv_handle_t*) handle, close_cb); in recv_cb() 99 uv_close((uv_handle_t*) &sender, close_cb); in recv_cb()
|
H A D | test-udp-create-socket-early.c | 46 r = uv_fileno((const uv_handle_t*) &client, &fd); in TEST_IMPL() 70 uv_close((uv_handle_t*) &client, NULL); in TEST_IMPL() 92 r = uv_fileno((const uv_handle_t*) &client, &fd); in TEST_IMPL() 117 uv_close((uv_handle_t*) &client, NULL); in TEST_IMPL()
|
H A D | test-pipe-connect-error.c | 39 static void close_cb(uv_handle_t* handle) { in close_cb() 47 uv_close((uv_handle_t*) connect_req->handle, close_cb); in connect_cb() 56 uv_close((uv_handle_t*) connect_req->handle, close_cb); in connect_cb_file()
|
/libuv/src/ |
H A D | uv-data-getter-setters.c | 36 uv_handle_type uv_handle_get_type(const uv_handle_t* handle) { in uv_handle_get_type() 40 void* uv_handle_get_data(const uv_handle_t* handle) { in uv_handle_get_data() 44 uv_loop_t* uv_handle_get_loop(const uv_handle_t* handle) { in uv_handle_get_loop() 48 void uv_handle_set_data(uv_handle_t* handle, void* data) { in uv_handle_set_data()
|
/libuv/docs/code/tcp-echo-server/ |
H A D | main.c | 23 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() 28 void on_close(uv_handle_t* handle) { in on_close() 49 uv_close((uv_handle_t*) client, on_close); in echo_read() 68 uv_close((uv_handle_t*) client, on_close); in on_new_connection()
|
/libuv/docs/code/uvtee/ |
H A D | main.c | 18 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() 47 uv_close((uv_handle_t *)&stdin_pipe, NULL); in read_stdin() 48 uv_close((uv_handle_t *)&stdout_pipe, NULL); in read_stdin() 49 uv_close((uv_handle_t *)&file_pipe, NULL); in read_stdin()
|