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

Method sendConnectAccept

Engine/source/sim/netInterface.cpp:342–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340//-----------------------------------------------------------------------------
341
342void NetInterface::sendConnectAccept(NetConnection *conn)
343{
344 BitStream *out = BitStream::getPacketStream();
345 out->write(U8(ConnectAccept));
346 out->write(conn->getSequence());
347 conn->writeConnectAccept(out);
348 BitStream::sendPacketStream(conn->getNetAddress());
349}
350
351void NetInterface::handleConnectAccept(const NetAddress *address, BitStream *stream)
352{

Callers

nothing calls this directly

Calls 4

getNetAddressMethod · 0.80
writeMethod · 0.45
getSequenceMethod · 0.45
writeConnectAcceptMethod · 0.45

Tested by

no test coverage detected