Searched refs:tcpServer (Results 1 – 4 of 4) sorted by relevance
/third_party/libuv/test/ |
D | echo-server.c | 36 static uv_tcp_t tcpServer; variable 255 server = (uv_handle_t*)&tcpServer; in tcp4_echo_start() 258 r = uv_tcp_init(loop, &tcpServer); in tcp4_echo_start() 265 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &addr, 0); in tcp4_echo_start() 272 r = uv_listen((uv_stream_t*)&tcpServer, SOMAXCONN, on_connection); in tcp4_echo_start() 289 server = (uv_handle_t*)&tcpServer; in tcp6_echo_start() 292 r = uv_tcp_init(loop, &tcpServer); in tcp6_echo_start() 300 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &addr6, 0); in tcp6_echo_start() 307 r = uv_listen((uv_stream_t*)&tcpServer, SOMAXCONN, on_connection); in tcp6_echo_start()
|
D | test-getsockname.c | 40 static uv_tcp_t tcpServer; variable 53 uv_close((uv_handle_t*)&tcpServer, NULL); in on_close() 177 r = uv_tcp_init(loop, &tcpServer); in tcp_listener() 183 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &addr, 0); in tcp_listener() 189 r = uv_listen((uv_stream_t*)&tcpServer, 128, on_connection); in tcp_listener() 197 r = uv_tcp_getsockname(&tcpServer, &sockname, &namelen); in tcp_listener() 203 r = uv_tcp_getpeername(&tcpServer, &peername, &namelen); in tcp_listener()
|
D | benchmark-pump.c | 49 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()
|
/third_party/node/test/parallel/ |
D | test-tls-net-connect-prefer-path.js | 41 mkServer(lib, true, (tcpServer) => { 45 port: tcpServer.address().port, 56 tcpServer.close();
|