Home
last modified time | relevance | path

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

/third_party/libuv/test/
Dbenchmark-multi-accept.c49 handle_storage_t server_handle; member
61 uv_stream_t* server_handle; member
68 handle_storage_t server_handle; member
94 static void sv_connection_cb(uv_stream_t* server_handle, int status);
131 (uv_stream_t*) &sc->server_handle, in ipc_connection_cb()
188 ASSERT(0 == uv_tcp_init(loop, (uv_tcp_t*) ctx->server_handle)); in ipc_read_cb()
190 ASSERT(0 == uv_pipe_init(loop, (uv_pipe_t*) ctx->server_handle, 0)); in ipc_read_cb()
194 ASSERT(0 == uv_accept(handle, ctx->server_handle)); in ipc_read_cb()
214 ASSERT(0 == uv_tcp_init(loop, (uv_tcp_t*) &ctx.server_handle)); in send_listen_handles()
215 ASSERT(0 == uv_tcp_bind((uv_tcp_t*) &ctx.server_handle, in send_listen_handles()
[all …]
Dtest-emfile.c31 static void connection_cb(uv_stream_t* server_handle, int status);
36 static uv_tcp_t server_handle; variable
63 ASSERT(0 == uv_tcp_init(loop, &server_handle)); in TEST_IMPL()
65 ASSERT(0 == uv_tcp_bind(&server_handle, (const struct sockaddr*) &addr, 0)); in TEST_IMPL()
66 ASSERT(0 == uv_listen((uv_stream_t*) &server_handle, 8, connection_cb)); in TEST_IMPL()
102 static void connection_cb(uv_stream_t* server_handle, int status) { in connection_cb() argument
113 uv_close((uv_handle_t*) &server_handle, NULL); in connect_cb()
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(0 == uv_tcp_init(loop, &server_handle)); in TEST_IMPL()
101 ASSERT(0 == uv_tcp_bind(&server_handle, (const struct sockaddr*) &addr, 0)); in TEST_IMPL()
102 ASSERT(0 == uv_listen((uv_stream_t*) &server_handle, 1, connection_cb)); in TEST_IMPL()
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(0 == uv_tcp_init(loop, &server_handle)); in TEST_IMPL()
124 ASSERT(0 == uv_tcp_bind(&server_handle, (const struct sockaddr*) &addr, 0)); in TEST_IMPL()
125 ASSERT(0 == uv_listen((uv_stream_t*) &server_handle, 1, connection_cb)); in TEST_IMPL()
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()
Dtest-poll-oob.c33 static uv_tcp_t server_handle; variable
62 uv_close((uv_handle_t*) &server_handle, NULL); in idle_cb()
171 ASSERT(0 == uv_tcp_init(loop, &server_handle)); in TEST_IMPL()
175 ASSERT(0 == uv_tcp_bind(&server_handle, (const struct sockaddr*) &addr, 0)); in TEST_IMPL()
176 ASSERT(0 == uv_listen((uv_stream_t*) &server_handle, 1, connection_cb)); in TEST_IMPL()