Skip to content

std::net: lookup_host_as_family#22913

Closed
stepancheg wants to merge 3 commits into
rust-lang:masterfrom
stepancheg:net
Closed

std::net: lookup_host_as_family#22913
stepancheg wants to merge 3 commits into
rust-lang:masterfrom
stepancheg:net

Conversation

@stepancheg

Copy link
Copy Markdown
Contributor

Sometimes you need to resolve address as specific address family.

  • enum IpAddrFamily
  • add simple test of lookup_host
  • lookup_host_as_family function that takes IpAddrFamily as second parameter

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

Function is used when host needs to be resolved as specific address
family.
@alexcrichton

Copy link
Copy Markdown
Member

Sorry for taking awhile to get back to this, but I'm going to close this for the same reasons as #23161. These sorts of additions need to go through an RFC first, and I think this would be a pretty good candidate for starting a wishlist issue in general for std::net. Thanks for the PR though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants