package dns-stub

  1. Overview
  2. Docs
DNS stub resolver

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dns-10.2.0.tbz
sha256=ad27c09256f9848658ee625d69140c898c24694aca43550bfb6fee5bc83e74e8
sha512=d5d6a0580d55485cbe46841fb8d5acd7de801bf6ce980f31888836425e39f23f3ff2e909c5f195b15a36166ae97ecd68d24429318028ae8d1ea9322df2f5a65d

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.