MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / sendConnectChallengeRequest

Method sendConnectChallengeRequest

Engine/source/sim/netInterface.cpp:180–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178
179
180void NetInterface::sendConnectChallengeRequest(NetConnection *conn)
181{
182 Con::printf("Sending Connect challenge Request");
183 BitStream *out = BitStream::getPacketStream();
184
185 out->write(U8(ConnectChallengeRequest));
186 out->write(conn->getSequence());
187
188 conn->mConnectSendCount++;
189 conn->mConnectLastSendTime = Platform::getVirtualMilliseconds();
190
191 BitStream::sendPacketStream(conn->getNetAddress());
192}
193
194void NetInterface::handleConnectChallengeRequest(const NetAddress *addr, BitStream *stream)
195{

Callers

nothing calls this directly

Calls 4

printfFunction · 0.85
getNetAddressMethod · 0.80
writeMethod · 0.45
getSequenceMethod · 0.45

Tested by

no test coverage detected