![]() |
DDNet documentation
|
Public Member Functions | |
| CServerBrowserHttp (IEngine *pEngine, IHttp *pHttp, const char **ppUrls, int NumUrls, int PreviousBestIndex) | |
| ~CServerBrowserHttp () override | |
| void | Shutdown () override |
| void | Update () override |
| bool | IsRefreshing () const override |
| bool | IsError () const override |
| void | Refresh () override |
| bool | GetBestUrl (const char **pBestUrl) const override |
| int | NumServers () const override |
| const CServerInfo & | Server (int Index) const override |
| Public Member Functions inherited from IServerBrowserHttp | |
| virtual | ~IServerBrowserHttp ()=default |
Private Types | |
| enum | { STATE_DONE , STATE_WANTREFRESH , STATE_REFRESHING , STATE_NO_MASTER } |
Static Private Member Functions | |
| static bool | Validate (json_value *pJson) |
| static bool | Parse (json_value *pJson, std::vector< CServerInfo > *pvServers) |
Private Attributes | |
| IHttp * | m_pHttp |
| int | m_State = STATE_WANTREFRESH |
| std::shared_ptr< IHttpRequest > | m_pGetServers |
| std::unique_ptr< CChooseMaster > | m_pChooseMaster |
| std::vector< CServerInfo > | m_vServers |
| CServerBrowserHttp::CServerBrowserHttp | ( | IEngine * | pEngine, |
| IHttp * | pHttp, | ||
| const char ** | ppUrls, | ||
| int | NumUrls, | ||
| int | PreviousBestIndex ) |
|
override |
|
inlineoverridevirtual |
Implements IServerBrowserHttp.
|
inlineoverridevirtual |
Implements IServerBrowserHttp.
|
inlineoverridevirtual |
Implements IServerBrowserHttp.
|
inlineoverridevirtual |
Implements IServerBrowserHttp.
|
staticprivate |
|
overridevirtual |
Implements IServerBrowserHttp.
|
inlineoverridevirtual |
Implements IServerBrowserHttp.
|
overridevirtual |
Implements IServerBrowserHttp.
|
overridevirtual |
Implements IServerBrowserHttp.
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |