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

Function setClient

engine/Poseidon/Network/NetTransportNet.cpp:211–221  ·  view source on GitHub ↗

Sets actual client instance (can be nullptr).

Source from the content-addressed store, hash-verified

209 msg->setFlags(MSG_ALL_FLAGS, MSG_MAGIC_FLAG);
210 msg->setData(reinterpret_cast<unsigned8*>(payload.Data()), payload.Size());
211 msg->send();
212 ++serial;
213 return true;
214}
215
216void decodeURLAddress(RString address, RString& ip, int& port)
217{
218 const char* ptr = strrchr(address, ':');
219 if (!ptr)
220 {
221 ip = address;
222 return;
223 }
224 ip = address.Substring(0, ptr - address);

Callers 2

NetClientMethod · 0.85
~NetClientMethod · 0.85

Calls 4

getPoolFunction · 0.85
getClientPeerFunction · 0.85
enterMethod · 0.45
leaveMethod · 0.45

Tested by

no test coverage detected