diff options
| author | Ivan Nejgebauer <inejge@gmail.com> | 2016-07-07 12:03:31 +0200 |
|---|---|---|
| committer | Ivan Nejgebauer <inejge@gmail.com> | 2016-07-07 12:03:31 +0200 |
| commit | 0314d179aa07905cc3bd4ec3206be28ff11696f9 (patch) | |
| tree | 769698b477e568bf3c040a2e999a7f1b7af1f77e /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 4114b68eba6914b46202a2108f34f7653e393851 (diff) | |
| download | rust-0314d179aa07905cc3bd4ec3206be28ff11696f9.tar.gz rust-0314d179aa07905cc3bd4ec3206be28ff11696f9.zip | |
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.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
