module Service:sig..end
OCaml implementation of featherweight services.
type 'a t
The type of a service that accepts sessions of type 'a.
val create : unit -> 'a tcreate () creates a new service.
val accept : ('a, 'b) Session.st t -> ('a, 'b) Session.staccept s waits for a connection from a client to service s.
val request : ('a, 'b) Session.st t -> ('b, 'a) Session.strequest s requests a connection to a service s.
val spawn : (('a, 'b) Session.st -> unit) -> ('a, 'b) Session.st tspawn f creates a persistent service that spawns a new thread f ep for each connection with endpoint ep accepted from a client.