Class CoprocessorSession¶
Defined in File Transport.hpp
Inheritance Relationships¶
Base Type¶
public catalyst::transport::TransportSession(Class TransportSession)
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().
fnis a local function pointer;ctxis passed back tofnon every invocation and may be null.- Parameters:
fn – The coprocessor function to run per received message.
ctx – Opaque context passed to
fnon each invocation; may be null.
-
virtual void set_coprocessor_fn(CoprocessorFn fn, void *ctx) = 0¶