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

Function sendPacket

Engine/source/app/net/serverQuery.cpp:1080–1089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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