Lines Matching refs:server
115 uv_tcp_t server; in TEST_IMPL() local
120 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
124 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
127 uv_close((uv_handle_t*)&server, close_cb); in TEST_IMPL()
140 uv_tcp_t server; in TEST_IMPL() local
145 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
147 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
150 uv_close((uv_handle_t*)&server, close_cb); in TEST_IMPL()
165 uv_tcp_t server; in TEST_IMPL() local
170 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
172 r = uv_tcp_bind(&server, (const struct sockaddr*) garbage_addr, 0); in TEST_IMPL()
175 uv_close((uv_handle_t*)&server, close_cb); in TEST_IMPL()
190 uv_tcp_t server; in TEST_IMPL() local
196 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
198 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr1, 0); in TEST_IMPL()
200 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr2, 0); in TEST_IMPL()
203 uv_close((uv_handle_t*)&server, close_cb); in TEST_IMPL()
216 uv_tcp_t server; in TEST_IMPL() local
221 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
223 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
233 uv_tcp_t server; in TEST_IMPL() local
238 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
240 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, UV_TCP_IPV6ONLY); in TEST_IMPL()
250 uv_tcp_t server; in TEST_IMPL() local
252 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
254 r = uv_listen((uv_stream_t*)&server, 128, NULL); in TEST_IMPL()
264 uv_tcp_t server; in TEST_IMPL() local
271 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
273 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
275 r = uv_listen((uv_stream_t*)&server, 128, NULL); in TEST_IMPL()
278 ASSERT_OK(uv_is_writable((uv_stream_t*) &server)); in TEST_IMPL()
279 ASSERT_OK(uv_is_readable((uv_stream_t*) &server)); in TEST_IMPL()
282 r = uv_write(&write_req, (uv_stream_t*) &server, &buf, 1, NULL); in TEST_IMPL()
284 r = uv_shutdown(&shutdown_req, (uv_stream_t*) &server, NULL); in TEST_IMPL()
286 r = uv_read_start((uv_stream_t*) &server, in TEST_IMPL()
291 uv_close((uv_handle_t*)&server, close_cb); in TEST_IMPL()