Searched refs:tcp_handle (Results 1 – 3 of 3) sorted by relevance
/libuv/test/ |
H A D | test-tcp-read-stop.c | 26 static uv_tcp_t tcp_handle; variable 37 uv_close((uv_handle_t*) &tcp_handle, NULL); in write_cb() 44 (uv_stream_t*) &tcp_handle, in timer_cb() 48 ASSERT_OK(uv_read_stop((uv_stream_t*) &tcp_handle)); in timer_cb() 55 ASSERT_OK(uv_read_start((uv_stream_t*) &tcp_handle, in connect_cb() 67 ASSERT_OK(uv_tcp_init(uv_default_loop(), &tcp_handle)); in TEST_IMPL() 69 &tcp_handle, in TEST_IMPL()
|
H A D | test-tcp-close.c | 30 static uv_tcp_t tcp_handle; variable 51 r = uv_write(req, (uv_stream_t*)&tcp_handle, &buf, 1, write_cb); in connect_cb() 55 uv_close((uv_handle_t*)&tcp_handle, close_cb); in connect_cb() 62 ASSERT_PTR_EQ(req->handle, (uv_stream_t*)&tcp_handle); in write_cb() 69 ASSERT_PTR_EQ(handle, (uv_handle_t*)&tcp_handle); in close_cb() 114 r = uv_tcp_init(loop, &tcp_handle); in TEST_IMPL() 118 &tcp_handle, in TEST_IMPL()
|
H A D | test-tcp-close-while-connecting.c | 27 static uv_tcp_t tcp_handle; variable 55 uv_close((uv_handle_t*)&tcp_handle, close_cb); in timer1_cb() 73 ASSERT_OK(uv_tcp_init(loop, &tcp_handle)); in TEST_IMPL() 75 &tcp_handle, in TEST_IMPL()
|
Completed in 5 milliseconds