package conduit-async

  1. Overview
  2. Docs
A network connection establishment library for Async

Install

Dune Dependency

Authors

Maintainers

Sources

conduit-v2.1.0.tbz
sha256=7b4dd1faca7ed4dc77c1b5d765fca9053209dcfcb2c379d666a19314d8f77e72
sha512=2f0baaa0b1d99874c12b2382ba2f95989a782c3b37ccc06fa69c61efb068100c0bf904f6e04d6ec64fd2346d696f0c97870f9f5a740ff278d51820af28ed0ac1

doc/conduit-async/Conduit_async/index.html

Module Conduit_asyncSource

Sourcemodule V1 : sig ... end
Sourcemodule V2 : sig ... end
Sourcemodule V3 : sig ... end
include module type of struct include V1.Conduit_async end
Sourcetype +'a io = 'a Async.Deferred.t
Sourcetype ic = Async.Reader.t
Sourcetype oc = Async.Writer.t
Sourcetype addr = [
  1. | `OpenSSL of string * Ipaddr.t * int
  2. | `OpenSSL_with_config of string * Ipaddr.t * int * Ssl.config
  3. | `TCP of Ipaddr.t * int
  4. | `Unix_domain_socket of string
]
Sourceval sexp_of_addr : addr -> Sexplib0.Sexp.t
Sourceval addr_of_sexp : Sexplib0.Sexp.t -> addr
Sourceval __addr_of_sexp__ : Sexplib0.Sexp.t -> addr
Sourceval connect : ?interrupt:unit io -> addr -> (ic * oc) io
Sourceval with_connection : ?interrupt:unit io -> addr -> (ic -> oc -> unit io) -> unit io
Sourcetype trust_chain = [
  1. | `Ca_file of string
  2. | `Ca_path of string
  3. | `Search_file_first_then_path of [ `File of string ] * [ `Path of string ]
]
Sourceval sexp_of_trust_chain : trust_chain -> Sexplib0.Sexp.t
Sourceval trust_chain_of_sexp : Sexplib0.Sexp.t -> trust_chain
Sourceval __trust_chain_of_sexp__ : Sexplib0.Sexp.t -> trust_chain
Sourcetype openssl = [
  1. | `OpenSSL of [ `Crt_file_path of string ] * [ `Key_file_path of string ]
]
Sourceval sexp_of_openssl : openssl -> Sexplib0.Sexp.t
Sourceval openssl_of_sexp : Sexplib0.Sexp.t -> openssl
Sourceval __openssl_of_sexp__ : Sexplib0.Sexp.t -> openssl
Sourcetype server = [
  1. | openssl
  2. | `TCP
  3. | `OpenSSL_with_trust_chain of openssl * trust_chain
]
Sourceval sexp_of_server : server -> Sexplib0.Sexp.t
Sourceval server_of_sexp : Sexplib0.Sexp.t -> server
Sourceval __server_of_sexp__ : Sexplib0.Sexp.t -> server
Sourceval serve : ?max_connections:int -> ?backlog:int -> ?buffer_age_limit:Async.Writer.buffer_age_limit -> on_handler_error: [ `Call of [< Async.Socket.Address.t ] as 'a -> exn -> unit | `Ignore | `Raise ] -> server -> ('a, 'b) Async.Tcp.Where_to_listen.t -> ('a -> ic -> oc -> unit io) -> ('a, 'b) Async.Tcp.Server.t io
OCaml

Innovation. Community. Security.