package dns-stub

  1. Overview
  2. Docs
DNS stub resolver

Install

Dune Dependency

Authors

Maintainers

Sources

dns-10.1.0.tbz
sha256=5c6fea514cec39c732e71764643e8fb9588dee038c991c184accbed3b41e37d2
sha512=58f74749cdc7c5d6adb059821dca42d2a20ae05dd989c93afddbd37806c748cb2709a51f2c7880e79d1bf99384639aa40c4a540047cb27da6ed609ca8eeb6eca

doc/dns-stub.mirage/Dns_stub_mirage/Make/Client/Transport/index.html

Module Client.TransportSource

Sourcetype 'a io = 'a Lwt.t
Sourcetype io_addr = [
  1. | `Plaintext of Ipaddr.t * int
  2. | `Tls of Tls.Config.client * Ipaddr.t * int
]
Sourcetype stack = S.t * H.t
Sourceval create : ?nameservers:(Dns.proto * io_addr list) -> timeout:int64 -> stack -> t
Sourceval nameservers : t -> Dns.proto * io_addr list
Sourceval rng : int -> string
Sourceval clock : unit -> int64
Sourceval connect : t -> (Dns.proto * context, [> `Msg of string ]) result io
Sourceval send_recv : context -> string -> (string, [> `Msg of string ]) result io
Sourceval close : context -> unit io
Sourceval bind : 'a io -> ('a -> 'b io) -> 'b io
Sourceval lift : 'a -> 'a io
Sourceval happy_eyeballs : t -> happy_eyeballs
OCaml

Innovation. Community. Security.