package conduit-async

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

Connection establishment using the Async library

type +'a io = 'a Async.Deferred.t
type ic = Async.Reader.t
type oc = Async.Writer.t
type 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
]
val connect : ?interrupt:unit io -> addr -> (ic * oc) io
val with_connection : ?interrupt:unit io -> addr -> (ic -> oc -> unit io) -> unit io
type 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 ]
]
type openssl = [
  1. | `OpenSSL of [ `Crt_file_path of string ] * [ `Key_file_path of string ]
]
type server = [
  1. | openssl
  2. | `TCP
  3. | `OpenSSL_with_trust_chain of openssl * trust_chain
]
val 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.