Home
last modified time | relevance | path

Searched refs:server_handle (Results 1 – 6 of 6) sorted by relevance

/libuv/test/
H A Dbenchmark-multi-accept.c49 handle_storage_t server_handle; member
61 uv_stream_t* server_handle; member
68 handle_storage_t server_handle; member
194 ASSERT_OK(uv_accept(handle, ctx->server_handle)); in ipc_read_cb()
234 uv_close((uv_handle_t*) &ctx.server_handle, NULL); in send_listen_handles()
245 ctx.server_handle = server_handle; in get_listen_handle()
246 ctx.server_handle->data = "server handle"; in get_listen_handle()
285 uv_close((uv_handle_t*) &ctx->server_handle, NULL); in sv_async_cb()
294 ctx = container_of(server_handle, struct server_ctx, server_handle); in sv_connection_cb()
300 if (server_handle->type == UV_TCP) in sv_connection_cb()
[all …]
H A Dtest-emfile.c31 static void connection_cb(uv_stream_t* server_handle, int status);
36 static uv_tcp_t server_handle; variable
63 ASSERT_OK(uv_tcp_init(loop, &server_handle)); in TEST_IMPL()
65 ASSERT_OK(uv_tcp_bind(&server_handle, (const struct sockaddr*) &addr, 0)); in TEST_IMPL()
66 ASSERT_OK(uv_listen((uv_stream_t*) &server_handle, 8, connection_cb)); in TEST_IMPL()
110 static void connection_cb(uv_stream_t* server_handle, int status) { in connection_cb() argument
121 uv_close((uv_handle_t*) &server_handle, NULL); in connect_cb()
H A Dtest-pipe-connect-multiple.c39 static uv_pipe_t server_handle; variable
82 r = uv_pipe_init(loop, &server_handle, 0); in TEST_IMPL()
85 r = uv_pipe_bind(&server_handle, TEST_PIPENAME); in TEST_IMPL()
88 r = uv_listen((uv_stream_t*)&server_handle, 128, connection_cb); in TEST_IMPL()
125 uv_close((uv_handle_t*)&server_handle, NULL); in connection_cb2()
133 uv_close((uv_handle_t*)&server_handle, NULL); in connect_cb2()
148 r = uv_pipe_init(loop, &server_handle, 0); in TEST_IMPL()
151 r = uv_pipe_bind(&server_handle, TEST_PIPENAME); in TEST_IMPL()
154 r = uv_listen((uv_stream_t*)&server_handle, 128, connection_cb2); in TEST_IMPL()
H A Dtest-tcp-unexpected-read.c27 static uv_tcp_t server_handle; variable
44 uv_close((uv_handle_t*) &server_handle, NULL); in timer_cb()
98 ASSERT_OK(uv_tcp_init(loop, &server_handle)); in TEST_IMPL()
101 ASSERT_OK(uv_tcp_bind(&server_handle, (const struct sockaddr*) &addr, 0)); in TEST_IMPL()
102 ASSERT_OK(uv_listen((uv_stream_t*) &server_handle, 1, connection_cb)); in TEST_IMPL()
H A Dtest-tcp-oob.c31 static uv_tcp_t server_handle; variable
51 uv_close((uv_handle_t*) &server_handle, NULL); in idle_cb()
120 ASSERT_OK(uv_tcp_init(loop, &server_handle)); in TEST_IMPL()
124 ASSERT_OK(uv_tcp_bind(&server_handle, (const struct sockaddr*) &addr, 0)); in TEST_IMPL()
125 ASSERT_OK(uv_listen((uv_stream_t*) &server_handle, 1, connection_cb)); in TEST_IMPL()
H A Dtest-poll-oob.c33 static uv_tcp_t server_handle; variable
62 uv_close((uv_handle_t*) &server_handle, NULL); in idle_cb()
175 ASSERT_OK(uv_tcp_init(loop, &server_handle)); in TEST_IMPL()
179 ASSERT_OK(uv_tcp_bind(&server_handle, (const struct sockaddr*) &addr, 0)); in TEST_IMPL()
180 ASSERT_OK(uv_listen((uv_stream_t*) &server_handle, 1, connection_cb)); in TEST_IMPL()

Completed in 20 milliseconds