MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / getPool

Function getPool

engine/Poseidon/Network/NetTransportNet.cpp:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74static RefD<NetPeer> clientPeer; // NetPeer for enumerator and client.
75
76static RefD<NetPeer> serverPeer; // NetPeer for server.
77
78static NetPool* getPool()
79// should be called inside of poolLock.enter()
80{
81 if (!pool)
82 {
83 pool = new NetPool(new PeerChannelFactoryUDP, nullptr, nullptr);
84 }
85 return pool;
86}

Callers 10

getClientPeerFunction · 0.85
getServerPeerFunction · 0.85
setEnumFunction · 0.85
setClientFunction · 0.85
setServerFunction · 0.85
~NetClientMethod · 0.85
InitMethod · 0.85
finishDestroyPlayerMethod · 0.85
FreeNetTransportMemoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected