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

Method sendConnectReject

Engine/source/sim/netInterface.cpp:373–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373void NetInterface::sendConnectReject(NetConnection *conn, const char *reason)
374{
375 if(!reason)
376 return; // if the stream is NULL, we reject silently
377
378 BitStream *out = BitStream::getPacketStream();
379 out->write(U8(ConnectReject));
380 out->write(conn->getSequence());
381 out->writeString(reason);
382 BitStream::sendPacketStream(conn->getNetAddress());
383}
384
385void NetInterface::handleConnectReject(const NetAddress *address, BitStream *stream)
386{

Callers

nothing calls this directly

Calls 4

getNetAddressMethod · 0.80
writeMethod · 0.45
getSequenceMethod · 0.45
writeStringMethod · 0.45

Tested by

no test coverage detected