Happy_eyeballs_lwtSourceThe type of the abstract state of happy eyeballs.
val create :
?happy_eyeballs:Happy_eyeballs.t ->
?dns:Dns_client_lwt.t ->
?timer_interval:int64 ->
unit ->
tcreate ~happy_eyeballs ~dns ~timer_interval () creates an initial state of happy eyeballs with the specified timeouts in nanoseconds - the default for timer_interval is Duration.of_ms 10.
val connect_host :
t ->
[ `host ] Domain_name.t ->
int list ->
((Ipaddr.t * int) * Lwt_unix.file_descr, [ `Msg of string ]) result Lwt.tconnect_host t host ports establishes a connection to host on ports (tried in sequence).
val connect_ip :
t ->
(Ipaddr.t * int) list ->
((Ipaddr.t * int) * Lwt_unix.file_descr, [ `Msg of string ]) result Lwt.tconnect_ip t addresses establishes a connection to addresses.
val connect :
t ->
string ->
int list ->
((Ipaddr.t * int) * Lwt_unix.file_descr, [ `Msg of string ]) result Lwt.tconnect t host ports establishes a connection to host on ports, which may be a host name, or an IP address.