MCPcopy Create free account
hub / github.com/3rdparty/libprocess / consume

Method consume

include/process/protobuf.hpp:106–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105protected:
106 void consume(process::MessageEvent&& event) override
107 {
108 if (protobufHandlers.count(event.message.name) > 0) {
109 from = event.message.from; // For 'reply'.
110 protobufHandlers[event.message.name](
111 event.message.from, event.message.body);
112 from = process::UPID();
113 } else {
114 process::Process<T>::consume(std::move(event));
115 }
116 }
117
118 void send(const process::UPID& to,
119 const google::protobuf::Message& message)

Callers

nothing calls this directly

Calls 2

UPIDClass · 0.85
countMethod · 0.45

Tested by

no test coverage detected