Searched refs:tcp_handle (Results 1 – 3 of 3) sorted by relevance
/third_party/libuv/test/ |
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(0 == uv_read_stop((uv_stream_t*) &tcp_handle)); in timer_cb() 55 ASSERT(0 == uv_read_start((uv_stream_t*) &tcp_handle, in connect_cb() 67 ASSERT(0 == uv_tcp_init(uv_default_loop(), &tcp_handle)); in TEST_IMPL() 69 &tcp_handle, in TEST_IMPL()
|
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(req->handle == (uv_stream_t*)&tcp_handle); in write_cb() 69 ASSERT(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()
|
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(0 == uv_tcp_init(loop, &tcp_handle)); in TEST_IMPL() 75 &tcp_handle, in TEST_IMPL()
|