package happy-eyeballs-lwt

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Happy_eyeballs_lwtSource

Sourcetype t

The type of the abstract state of happy eyeballs.

Sourceval create : unit -> t

create () creates an initial state of happy eyeballs.

Sourceval connect_host : t -> [ `host ] Domain_name.t -> int list -> ((Ipaddr.t * int) * Lwt_unix.file_descr, [ `Msg of string ]) result Lwt.t

connect_host t host ports establishes a connection to host on ports (tried in sequence).

Sourceval connect_ip : t -> Ipaddr.Set.t -> int list -> ((Ipaddr.t * int) * Lwt_unix.file_descr, [ `Msg of string ]) result Lwt.t

connect_ip t ips ports establishes a connection to ips on ports.

  • raises Failure

    if ips is the empty set, or ports is the empty list.

Sourceval connect : t -> string -> int list -> ((Ipaddr.t * int) * Lwt_unix.file_descr, [ `Msg of string ]) result Lwt.t

connect t host ports establishes a connection to host on ports, which may be a host name, or an IP address.

  • raises Failure

    if ports is the empty list.

OCaml

Innovation. Community. Security.