Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Connection establishment using the Async library
module Ssl = Conduit_async_ssl.Ssl_config
type +'a io = 'a Async.Deferred.t
type ic = Async.Reader.t
type oc = Async.Writer.t
type addr = [
| `OpenSSL of string * Ipaddr.t * int
| `OpenSSL_with_config of string * Ipaddr.t * int * Ssl.config
| `TCP of Ipaddr.t * int
| `Unix_domain_socket of string
]
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