Connection establishment using the Lwt_unix library
Set of supported client connections that are supported by this module.
Configuration fragment for a listening TLS server
Set of supported listening mechanisms that are supported by this module.
#
fd
| : Lwt_unix.file_descr Sexplib.Conv.sexp_opaque | ; | |||
#
path
| : string | ; |
domain_flow
contains the state of a single Unix domain socket
connection.
A flow
contains the state of a single connection, over a specific
transport method.
Type describing where to locate a PEM key in the filesystem
State handler for an active conduit
Default context that listens on all source addresses with no TLS certificate associated with the Conduit
init ?src ?tls_server_key ()
will initialize a Unix conduit
that binds to the src
interface if specified. If TLS server
connections are used, then tls_server_key
must contain a
valid certificate to be used to advertise a TLS connection
serve ?timeout ?stop ~ctx ~mode fn
establishes a listening
connection of type mode
, using the ctx
context. The
stop
thread will terminate the server if it ever becomes
determined. Every connection will be served in a new
lightweight thread that is invoked via the fn
callback