Home
last modified time | relevance | path

Searched refs:tcpServer (Results 1 – 3 of 3) sorted by relevance

/libuv/test/
H A Decho-server.c36 static uv_tcp_t tcpServer; variable
257 server = (uv_handle_t*)&tcpServer; in tcp4_echo_start()
260 r = uv_tcp_init(loop, &tcpServer); in tcp4_echo_start()
267 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &addr, 0); in tcp4_echo_start()
274 r = uv_listen((uv_stream_t*)&tcpServer, SOMAXCONN, on_connection); in tcp4_echo_start()
291 server = (uv_handle_t*)&tcpServer; in tcp6_echo_start()
294 r = uv_tcp_init(loop, &tcpServer); in tcp6_echo_start()
302 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &addr6, 0); in tcp6_echo_start()
309 r = uv_listen((uv_stream_t*)&tcpServer, SOMAXCONN, on_connection); in tcp6_echo_start()
H A Dtest-getsockname.c41 static uv_tcp_t tcpServer; variable
54 uv_close((uv_handle_t*)&tcpServer, NULL); in on_close()
178 r = uv_tcp_init(loop, &tcpServer); in tcp_listener()
184 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &addr, 0); in tcp_listener()
190 r = uv_listen((uv_stream_t*)&tcpServer, 128, on_connection); in tcp_listener()
198 r = uv_tcp_getsockname(&tcpServer, &sockname, &namelen); in tcp_listener()
204 r = uv_tcp_getpeername(&tcpServer, &peername, &namelen); in tcp_listener()
H A Dbenchmark-pump.c49 static uv_tcp_t tcpServer; variable
385 server = (uv_stream_t*)&tcpServer; in HELPER_IMPL()
386 r = uv_tcp_init(loop, &tcpServer); in HELPER_IMPL()
388 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &listen_addr, 0); in HELPER_IMPL()
390 r = uv_listen((uv_stream_t*)&tcpServer, MAX_WRITE_HANDLES, connection_cb); in HELPER_IMPL()

Completed in 9 milliseconds