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

Method AddNetConnectionBus

src/plugin/net/src/AFCNetServiceManagerModule.cpp:200–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200bool AFCNetServiceManagerModule::AddNetConnectionBus(int client_bus_id, std::shared_ptr<AFINet> net_ptr)
201{
202 if (client_bus_id <= 0 || net_ptr == nullptr)
203 {
204 return false;
205 }
206
207 int self_bus_id = m_pBusModule->GetSelfBusID();
208 return net_bus_relations_.insert(std::make_pair(self_bus_id, client_bus_id), net_ptr).second;
209}
210
211bool AFCNetServiceManagerModule::RemoveNetConnectionBus(int client_bus_id)
212{

Callers 1

OnConnectMethod · 0.80

Calls 2

GetSelfBusIDMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected