Searched refs:tcpServer (Results 1 - 3 of 3) sorted by relevance
/netbsd-current/external/mit/libuv/dist/test/ |
H A D | echo-server.c | 36 static uv_tcp_t tcpServer; variable 257 server = (uv_handle_t*)&tcpServer; 260 r = uv_tcp_init(loop, &tcpServer); 267 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &addr, 0); 274 r = uv_listen((uv_stream_t*)&tcpServer, SOMAXCONN, on_connection); 291 server = (uv_handle_t*)&tcpServer; 294 r = uv_tcp_init(loop, &tcpServer); 302 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &addr6, 0); 309 r = uv_listen((uv_stream_t*)&tcpServer, SOMAXCONN, on_connection);
|
H A D | test-getsockname.c | 41 static uv_tcp_t tcpServer; variable 54 uv_close((uv_handle_t*)&tcpServer, NULL); 178 r = uv_tcp_init(loop, &tcpServer); 184 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &addr, 0); 190 r = uv_listen((uv_stream_t*)&tcpServer, 128, on_connection); 198 r = uv_tcp_getsockname(&tcpServer, &sockname, &namelen); 204 r = uv_tcp_getpeername(&tcpServer, &peername, &namelen);
|
H A D | benchmark-pump.c | 49 static uv_tcp_t tcpServer; variable 385 server = (uv_stream_t*)&tcpServer; 386 r = uv_tcp_init(loop, &tcpServer); 388 r = uv_tcp_bind(&tcpServer, (const struct sockaddr*) &listen_addr, 0); 390 r = uv_listen((uv_stream_t*)&tcpServer, MAX_WRITE_HANDLES, connection_cb);
|
Completed in 137 milliseconds