robur-coop / udns

[deprecated, developmeht moved to https://github.com/mirage/ocaml-dns] µDNS - an opinionated Domain Name System (DNS) library
BSD 2-Clause "Simplified" License
55 stars 5 forks source link

revise client flow #14

Closed hannesm closed 5 years ago

hannesm commented 5 years ago

now, instead of defining stack and flow, we also define a type t, and a create : ?nameserver -> stack -> t. The type t is used (instead of stack) in gethostbyname.

with these changes, https://github.com/mirage/ocaml-conduit/pull/290 brings a mirage-conduit that uses udns and this new API