MCPcopy Create free account
hub / github.com/ddnet/ddnet / GetBestUrl

Method GetBestUrl

src/engine/client/serverbrowser_http.cpp:141–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141bool CChooseMaster::GetBestUrl(const char **ppBestUrl) const
142{
143 int Index = GetBestIndex();
144 if(Index < 0)
145 {
146 *ppBestUrl = nullptr;
147 return true;
148 }
149 *ppBestUrl = m_pData->m_aaUrls[Index];
150 return false;
151}
152
153void CChooseMaster::Reset()
154{

Callers 3

UpdateMethod · 0.45
GetBestUrlMethod · 0.45
UpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected