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

Function sendPacket

Engine/source/app/net/serverQuery.cpp:1083–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1081//-----------------------------------------------------------------------------
1082
1083static void sendPacket( U8 pType, const NetAddress* addr, U32 key, U32 session, U8 flags )
1084{
1085 BitStream *out = BitStream::getPacketStream();
1086 out->clearStringBuffer();
1087 out->write( pType );
1088 out->write( flags );
1089 out->write( U32( ( session << 16 ) | ( key & 0xFFFF ) ) );
1090
1091 BitStream::sendPacketStream(addr);
1092}
1093
1094//-----------------------------------------------------------------------------
1095

Callers 6

checkPacketSendMethod · 0.85
sendPingPacketMethod · 0.85
sendAckPacketMethod · 0.85
queryMasterGameTypesFunction · 0.85
sendHeartbeatFunction · 0.85
processPingsAndQueriesFunction · 0.85

Calls 3

clearStringBufferMethod · 0.80
U32Enum · 0.50
writeMethod · 0.45

Tested by

no test coverage detected