netdb/lib.rs
1//! Querying the System’s Network Name Database
2//!
3//! This crate allows querying the database of network-related names
4//! similar to the what can be found in POSIX’s `netdb.h`. The queries
5//! are performed in a way appropriate for the platform and consider the
6//! system’s configuration.
7//!
8//! > **Note:** This is not yet true for this initial release. It performs
9//! > queries in a hard-wired fashion and probably only works correctly
10//! > on Unix-y systems.
11//!
12//! For each query, there are synchronous functions (generally prefixed with
13//! `get_`) as well as asynchronous functions return futures atop a Tokio
14//! reactor core (starting with `poll_` for want of a better prefix).
15//!
16//! For each database, there is a submodule. Have a look at these modules
17//! for more information.
18//!
19extern crate domain;
20extern crate futures;
21extern crate tokio_core;
22
23pub mod hosts;