Expand description
This crate provides a simple name resolver that uses lib’s name resolution.
Unfortunately libc doesn’t provide asyncrhonous name resolution for many reasons so we run requests in a thread pool.
For high-performance server applications this way is far from being performant, still it is the most compatible to everything else. So it might be used:
- To provide maximum compatibility (i.e. good default for dev environment)
- In applications where name resolution is not slow part
- As a fallthrough resolver for
ns_router::Router
where more frequently used name suffixes are overriden with faster resolver for that namespace
Structs§
- Future
- A Future returned from resolver
- Threaded
Resolver - A resolver that uses ToSocketAddrs from stdlib in thread pool