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

Method RemoveNetConnectionBus

src/plugin/net/src/AFCNetServiceManagerModule.cpp:211–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211bool AFCNetServiceManagerModule::RemoveNetConnectionBus(int client_bus_id)
212{
213 if (client_bus_id <= 0)
214 {
215 return false;
216 }
217
218 int self_bus_id = m_pBusModule->GetSelfBusID();
219 net_bus_relations_.erase(std::make_pair(self_bus_id, client_bus_id));
220 return true;
221}
222
223std::shared_ptr<AFINet> AFCNetServiceManagerModule::GetNetConnectionBus(int src_bus, int target_bus)
224{

Callers 2

OnNetEventMethod · 0.80
OnDisconnectMethod · 0.80

Calls 2

GetSelfBusIDMethod · 0.80
eraseMethod · 0.45

Tested by

no test coverage detected