Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use hints with getaddrinfo() in std::net::lokup_host()
When resolving a hostname, pass a hints struct where ai_socktype is set to SOCK_STREAM in order to eliminate repeated results for each protocol family.
- Loading branch information