Home
last modified time | relevance | path

Searched refs:tcp_handle (Results 1 – 3 of 3) sorted by relevance

/libuv/test/
H A Dtest-tcp-read-stop.c26 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 Dtest-tcp-close.c30 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 Dtest-tcp-close-while-connecting.c27 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