package mirage
The MirageOS library operating system
Install
Dune Dependency
Authors
Maintainers
Sources
mirage-4.7.0.tbz
sha256=ade8c410b2de3997c4a513f53f6c990dac6af508161e20df01b64fa7975ca5be
sha512=42fddf09be84c4251417145b88d4f63b41db1b29c9622b2b4e4508e31146f227a16875e670da96251208745f79a42f0b7d2bd8b44b883a705381b4c97a4255b8
doc/src/mirage.devices/dns.ml.html
Source file dns.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
open Functoria.DSL open Time open Mclock open Pclock open Stack open Random open Misc open Happy_eyeballs type dns_client = Dns_client let dns_client = typ Dns_client let generic_dns_client timeout nameservers = let packages = [ package "dns-client-mirage" ~min:"9.0.0" ~max:"10.0.0" ] in let runtime_args = runtime_args_opt [ nameservers; timeout ] in let pp_nameservers ppf s = pp_label "nameservers" ppf (match s with None -> Some "[]" | _ -> s) in let err () = connect_err "generic_dns_client" 6 ~max:8 in let connect _info modname = function | _random :: _time :: _mclock :: _pclock :: stackv4v6 :: happy_eyeballs :: rest -> let nameservers, rest = pop ~err nameservers rest in let timeout, rest = pop ~err timeout rest in let () = match rest with [] -> () | _ -> err () in code ~pos:__POS__ {ocaml|%s.connect @[%a%a@ (%s, %s)@]|ocaml} modname pp_nameservers nameservers (pp_opt "timeout") timeout stackv4v6 happy_eyeballs | _ -> err () in impl ~runtime_args ~packages ~connect "Dns_client_mirage.Make" (random @-> time @-> mclock @-> pclock @-> stackv4v6 @-> happy_eyeballs @-> dns_client)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>