package dns-stub

  1. Overview
  2. Docs

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.