Use getaddrinfo() and add IPv6 support in startServer
This commit refactors startServer to use getaddrinfo() to prepare the socket creation. Doing so, it also adds support for IPv6 by using AF_UNSPEC as the address family.
Showing
Please register or sign in to comment