5c798dd297
In tcp protocol, if no ports are bound, Add random ports during the listening phase libuvtestcase: TEST_IMPL(tcp_listen_without_bind) { int r; uv_tcp_t server; r = uv_tcp_init(uv_default_loop(), &server); ASSERT(r == 0); r = uv_listen((uv_stream_t*)&server, 128, NULL); ASSERT(r == 0); MAKE_VALGRIND_HAPPY(); return 0; } Signed-off-by: wangchen <wangchen41@xiaomi.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
inet_globals.c | ||
inet_sockif.c | ||
inet_txdrain.c | ||
inet.h | ||
ipv4_build_header.c | ||
ipv4_getpeername.c | ||
ipv4_getsockname.c | ||
ipv4_getsockopt.c | ||
ipv4_setsockopt.c | ||
ipv6_build_header.c | ||
ipv6_getpeername.c | ||
ipv6_getsockname.c | ||
ipv6_getsockopt.c | ||
ipv6_setsockopt.c | ||
Kconfig | ||
Make.defs |