Plasma GitLab Archive
Projects Blog Knowledge

Class virtual Netplex_kit.processor_base

class virtual processor_base : Netplex_types.processor_hooks -> v_processor

A virtual (incomplete) base class for processors. As argument the user-supplied hooks are passed in. Use this class as in:

    class my_processor hooks =
    object(self)
      inherit Netplex_kit.processor_base hooks
      method process ~when_done container fd proto_name = ...
      method supported_ptypes = ...
    end
 

In order to run actions from hooks, redefine the hook methods as in:

    class my_processor hooks =
    object(self)
      inherit Netplex_kit.processor_base hooks as super
      method process ~when_done container fd proto_name = ...
      method supported_ptypes = ...
      method post_start_hook container =
        ... (* my action *);
        super # post_start_hook container
    end
 

This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml