MCPcopy Create free account
hub / github.com/crossuo/crossuo / PacketRecv

Method PacketRecv

src/Managers/PluginManager.cpp:96–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96bool CPluginManager::PacketRecv(uint8_t *buf, size_t size)
97{
98 bool result = true;
99 QFOR(plugin, m_Items, CPlugin *)
100 {
101 if (plugin->CanParseRecv() && plugin->m_PPS->OnRecv != nullptr)
102 {
103 bool funRet = plugin->m_PPS->OnRecv(buf, size);
104 if (result)
105 {
106 result = funRet;
107 }
108 }
109 }
110 return result;
111}
112
113bool CPluginManager::PacketSend(uint8_t *buf, size_t size)
114{

Callers 2

SendToPluginMethod · 0.80
OnPacketMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected