Plasma GitLab Archive
Projects Blog Knowledge

Class type Netplex_types.processor


class type processor = object .. end
Inherits
method process : when_done:(unit -> unit) ->
container -> Unix.file_descr -> string -> unit
A user-supplied function that is called when a new socket connection is established. The function can now process the requests arriving over the connection. It is allowed to use the event system of the container, and to return immediately (multiplexing processor). It is also allowed to process the requests synchronously and to first return to the caller when the connection is terminated.

The function must call when_done to indicate that it processed this connection completely.

The string argument is the protocol name.

method supported_ptypes : parallelization_type list
The supported parallelization types
This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml