Ocamlnet 4 Reference Manual : Netpop.connect

# Class Netpop.connect

    class connect : ?proxy:#Uq_engines.client_endpoint_connector -> Uq_engines.connect_address -> float -> client

`connect addr timeout`: Connects with the server at `addr`, and configure that I/O operations time out after `timeout` seconds of waiting.

Example:

      let addr =
        `Socket(`Sock_inet_byname(Unix.SOCK_STREAM, "www.domain.com", 110),
                Uq_client.default_connect_options) in
      let client =
        new Netpop.connect addr 60.0