Module Dns.Transport

type context = Dns_client_mirage.Make(R)(T)(M)(P)(Stack).Transport.context
type 'a io = 'a Lwt.t
type io_addr = [
  1. | `Plaintext of Ipaddr.t * int
  2. | `Tls of Tls.Config.client * Ipaddr.t * int
]
type stack = Stack.t
type t = Dns_client_mirage.Make(R)(T)(M)(P)(Stack).Transport.t
val create : ?nameservers:(Dns.proto * io_addr list) -> timeout:int64 -> stack -> t
val nameservers : t -> Dns.proto * io_addr list
val rng : int -> Cstruct.t
val clock : unit -> int64
val connect : t -> (Dns.proto * context, [> `Msg of string ]) Stdlib.result io
val send_recv : context -> Cstruct.t -> (Cstruct.t, [> `Msg of string ]) Stdlib.result io
val close : context -> unit io
val bind : 'a io -> ('a -> 'b io) -> 'b io
val lift : 'a -> 'a io