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

Method sendConnectChallengeRequest

Engine/source/sim/netInterface.cpp:179–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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