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

Method sendConnectReject

Engine/source/sim/netInterface.cpp:374–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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