Home
last modified time | relevance | path

Searched refs:tcp_server (Results 1 – 8 of 8) sorted by relevance

/libuv/test/
H A Dtest-ipc.c29 static uv_tcp_t tcp_server; variable
72 ASSERT_PTR_EQ(&tcp_server, server); in on_connection()
181 r = uv_tcp_init(uv_default_loop(), &tcp_server); in on_read()
270 uv_close((uv_handle_t*)&tcp_server, NULL); in on_read_listen_after_bound_twice()
551 uv_close((uv_handle_t*)&tcp_server, close_cb); in conn_notify_write_cb()
560 uv_close((uv_handle_t*)&tcp_server, close_cb); in tcp_connection_write_cb()
619 ASSERT_PTR_EQ(&tcp_server, server); in ipc_on_connection()
650 ASSERT_PTR_EQ(&tcp_server, server); in ipc_on_connection_tcp_conn()
696 r = uv_tcp_init(uv_default_loop(), &tcp_server); in ipc_helper()
709 (uv_stream_t*)&tcp_server, NULL); in ipc_helper()
[all …]
H A Dtest-tcp-write-to-half-open-connection.c35 static uv_tcp_t tcp_server; variable
48 ASSERT_PTR_EQ(server, (uv_stream_t*)&tcp_server); in connection_cb()
82 uv_close((uv_handle_t*)&tcp_server, NULL); in read_cb()
115 r = uv_tcp_init(loop, &tcp_server); in TEST_IMPL()
118 r = uv_tcp_bind(&tcp_server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
121 r = uv_listen((uv_stream_t*)&tcp_server, 1, connection_cb); in TEST_IMPL()
H A Dblackhole-server.c33 static uv_tcp_t tcp_server; variable
47 ASSERT_PTR_EQ(stream, (uv_stream_t*)&tcp_server); in connection_cb()
108 r = uv_tcp_init(loop, &tcp_server); in HELPER_IMPL()
111 r = uv_tcp_bind(&tcp_server, (const struct sockaddr*) &addr, 0); in HELPER_IMPL()
114 r = uv_listen((uv_stream_t*)&tcp_server, 128, connection_cb); in HELPER_IMPL()
H A Dtest-tcp-close-accept.c32 static uv_tcp_t tcp_server; variable
106 uv_close((uv_handle_t*) &tcp_server, close_cb); in read_cb()
121 ASSERT_PTR_EQ(server, (uv_stream_t*) &tcp_server); in connection_cb()
167 ASSERT_OK(uv_tcp_init(loop, &tcp_server)); in TEST_IMPL()
168 ASSERT_OK(uv_tcp_bind(&tcp_server, (const struct sockaddr*) &addr, 0)); in TEST_IMPL()
169 ASSERT_OK(uv_listen((uv_stream_t*) &tcp_server, in TEST_IMPL()
H A Dtest-tcp-close-reset.c35 static uv_tcp_t tcp_server; variable
96 uv_close((uv_handle_t*) &tcp_server, NULL); in do_close()
212 start_server(loop, &tcp_server); in TEST_IMPL()
239 start_server(loop, &tcp_server); in TEST_IMPL()
266 start_server(loop, &tcp_server); in TEST_IMPL()
293 start_server(loop, &tcp_server); in TEST_IMPL()
320 start_server(loop, &tcp_server); in TEST_IMPL()
H A Dtest-tcp-close.c103 uv_tcp_t tcp_server; in TEST_IMPL() local
112 start_server(loop, &tcp_server); in TEST_IMPL()
H A Dtest-tcp-close-after-read-timeout.c146 uv_tcp_t tcp_server; in TEST_IMPL() local
155 start_server(loop, &tcp_server); in TEST_IMPL()
H A Dtest-spawn.c54 static uv_tcp_t tcp_server; variable
701 r = uv_tcp_init_ex(uv_default_loop(), &tcp_server, AF_INET); in TEST_IMPL()
703 r = uv_tcp_bind(&tcp_server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
706 r = uv_fileno((uv_handle_t*) &tcp_server, &handle); in TEST_IMPL()
709 r = uv_fileno((uv_handle_t*) &tcp_server, &fd); in TEST_IMPL()

Completed in 18 milliseconds