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

Function findOrCreateServerInfo

engine/source/network/serverQuery.cc:871–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

869//-----------------------------------------------------------------------------
870
871static ServerInfo* findOrCreateServerInfo( const NetAddress* addr )
872{
873 ServerInfo* ret = findServerInfo( addr );
874 if ( ret )
875 return ret;
876
877 ServerInfo si;
878 si.address = *addr;
879 gServerList.push_back( si );
880
881 return &gServerList.last();
882}
883
884//-----------------------------------------------------------------------------
885

Callers 2

pushServerFavoritesFunction · 0.85
handleGamePingResponseFunction · 0.85

Calls 3

findServerInfoFunction · 0.85
push_backMethod · 0.45
lastMethod · 0.45

Tested by

no test coverage detected