Class CoprocessorSession

Inheritance Relationships

Base Type

Class Documentation

class CoprocessorSession : public catalyst::transport::TransportSession

Coprocessor role: receives messages, process, and returns replies.

Public Functions

virtual void set_coprocessor_fn(CoprocessorFn fn, void *ctx) = 0

Bind the coprocessor function this session runs.

Call before start(). fn is a local function pointer; ctx is passed back to fn on every invocation and may be null.

Parameters:
  • fn – The coprocessor function to run per received message.

  • ctx – Opaque context passed to fn on each invocation; may be null.