MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / send_message

Function send_message

tutorial/T16-MessageSendRecv.cpp:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14using namespace CGraph;
15
16void send_message() {
17 CStatus status;
18 GElementPtr a, b;
19 GPipelinePtr pubPipeLine = GPipelineFactory::create();
20
21 // 注册用于 发送 的pipeline
22 status += pubPipeLine->registerGElement<MyNode1>(&a, {}, "myNode1");
23 status += pubPipeLine->registerGElement<MySendMessageNode>(&b, {a});
24
25 pubPipeLine->process(3);
26}
27
28
29void recv_message() {

Callers

nothing calls this directly

Calls 2

createFunction · 0.85
processMethod · 0.45

Tested by

no test coverage detected