MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / SendMsgByBusID

Method SendMsgByBusID

src/plugin/bus/src/AFCMsgModule.cpp:136–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136bool AFCMsgModule::SendMsgByBusID(
137 const int bus_id, const int msg_id, const google::protobuf::Message& msg, const AFGUID& guid /* = NULL_GUID*/)
138{
139 auto src_bus = m_pBusModule->GetSelfBusID();
140 auto pNet = m_pNetServiceManagerModule->GetNetConnectionBus(src_bus, bus_id);
141 return SendMsg(pNet, src_bus, bus_id, msg_id, msg, guid);
142}
143
144bool AFCMsgModule::SendMsg(std::shared_ptr<AFINet>& pNet, const int src_bus, const int target_bus, const int msg_id,
145 const google::protobuf::Message& msg, const AFGUID& guid)

Callers

nothing calls this directly

Calls 2

GetSelfBusIDMethod · 0.80
GetNetConnectionBusMethod · 0.80

Tested by

no test coverage detected