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

Function setServer

engine/Poseidon/Network/NetTransportNet.cpp:224–234  ·  view source on GitHub ↗

Sets actual server instance (can be nullptr).

Source from the content-addressed store, hash-verified

222 return;
223 }
224 ip = address.Substring(0, ptr - address);
225 port = atoi(ptr + 1);
226}
227
228// Actual enumeration instance (can be nullptr).
229static NetSessionEnum* _enum = nullptr;
230
231// Actual client instance (can be nullptr).
232static NetClient* _client = nullptr;
233
234// NetServer instance to process control messages.
235static NetServer* _server = nullptr;
236
237// Sets actual enumeration instance (can be nullptr).

Callers 2

NetServerMethod · 0.85
~NetServerMethod · 0.85

Calls 4

getPoolFunction · 0.85
getServerPeerFunction · 0.85
enterMethod · 0.45
leaveMethod · 0.45

Tested by

no test coverage detected