package mnet-dns
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Mnet_dns.TransportSource
Source
type context = {nameservers : io_addr list;timeout : int;mutable ports : Set.t;mutable mode : [ `Tcp of Ipaddr.t * Ke.t | `Udp ] option;mutable reqs : (string * ivar) Reqs.t;mutable ureqs : ivar UReqs.t;queries : string Queue.t;uqueries : int Queue.t;mutex : Miou.Mutex.t;condition : Miou.Condition.t;he : Mnet_happy_eyeballs.t;udp : Mnet.UDP.state;
}Source
val to_pairs :
[ `Plaintext of Ipaddr.t * int | `Tls of Tls.Config.client * Ipaddr.t * int ]
list ->
(Ipaddr.t * int) listSource
val tls_config_of_nameserver :
[> `Tls of 'a * Ipaddr.t * 'b ] list ->
(Ipaddr.t * 'b) ->
'a optionSource
val connect_to_nameservers :
context ->
[ `Plaintext of Ipaddr.t * int | `Tls of Tls.Config.client * Ipaddr.t * int ]
list ->
((Ipaddr.t * int) * [> `Plain of Mnet.TCP.flow | `TLS of Mnet_tls.t ],
[> `Msg of string ])
resultSource
val try_tls_connection :
context ->
[ `Plaintext of Ipaddr.t * int | `Tls of Tls.Config.client * Ipaddr.t * int ]
list ->
Tls.Config.client ->
(Ipaddr.t * int) ->
Mnet.TCP.flow ->
((Ipaddr.t * int) * [> `Plain of Mnet.TCP.flow | `TLS of Mnet_tls.t ],
[> `Msg of string ])
resultSource
val create :
?nameservers:??? ->
timeout:int64 ->
(Mnet.UDP.state * Mnet_happy_eyeballs.t) ->
context * unit Miou.t