-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
type env = < | ||
clock : Eio.Time.clock ; | ||
net : Eio.Net.t ; | ||
fs : Eio.Dir.t ; | ||
secure_random : Eio.Flow.source; | ||
> | ||
|
||
module Transport : Dns_client.S | ||
with type io_addr = Ipaddr.t * int | ||
and type stack = env * Eio.Switch.t | ||
and type +'a io = 'a | ||
|
||
module type DNS_CLIENT = module type of Dns_client.Make(Transport) | ||
|
||
val run : ?sleep:int64 -> < env; ..> -> ((module DNS_CLIENT) -> 'a) -> 'a |