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

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

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