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

Function findOrCreateServerInfo

Engine/source/app/net/serverQuery.cpp:1014–1025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1012//-----------------------------------------------------------------------------
1013
1014static ServerInfo* findOrCreateServerInfo( const NetAddress* addr )
1015{
1016 ServerInfo* ret = findServerInfo( addr );
1017 if ( ret )
1018 return ret;
1019
1020 ServerInfo si;
1021 si.address = *addr;
1022 gServerList.push_back( si );
1023
1024 return &gServerList.last();
1025}
1026
1027//-----------------------------------------------------------------------------
1028

Callers 2

pushServerFavoritesFunction · 0.85
handleGamePingResponseFunction · 0.85

Calls 3

findServerInfoFunction · 0.85
lastMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected