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

Function findOrCreateServerInfo

Engine/source/app/net/serverQuery.cpp:1016–1027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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