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

Method NSessions

engine/Poseidon/Network/NetTransportNetEnum.cpp:206–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206int NetSessionEnum::NSessions()
207{
208 enter();
209 int n = _sessions.Size();
210 leave();
211#ifdef NET_LOG_NSESSIONS
212 NetLog("Peer(%u): NetSessionEnum::NSessions: N=%d", NetTpInternal::getClientPeer()->getPeerId(), n);
213#endif
214 return n;
215}
216
217void NetSessionEnum::GetSessions(AutoArray<SessionInfo>& sessions)
218{

Callers 1

WaitForSessionMethod · 0.80

Calls 3

getClientPeerFunction · 0.85
getPeerIdMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected