package dns-client
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=c895b2d112c4aa60c0987a09eb59f0d9602bd804fecf4124795be16e4a86734a
sha512=c51c3d123a89fcde187771d405df0be7282c44c9597bdfa54ca9eedc89347a6346ff4ef461ef65557d1b1d0e50eb7d42a39267ffa11bedf1feb37d38f459e10d
doc/dns-client.unix/Dns_client_unix/Transport/index.html
Module Dns_client_unix.TransportSource
A flow module based on blocking I/O on top of the Unix socket API.
TODO: Implement the connect timeout.
io is the type of an effect. 'err is a polymorphic variant.
An address for a given context type, usually this will consist of IP address + a TCP/IP or UDP/IP port number, but for some context types it can carry additional information for purposes of cryptographic verification.
A stack with which to connect.
The abstract state of a DNS client.
create ~nameservers ~timeout stack creates the state record of the DNS client. We use timeout (ns) as a cumulative time budget for connect and request timeouts.
The address of a nameservers that is supposed to work with the underlying context, can be used if the user does not want to bother with configuring their own.
rng t is a random number generator.
clock t is the monotonic clock.
connect t is a new connection (context) to t, or an error.
send_recv context buffer sends buffer to the context upstream, and then reads a buffer.