diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /tracker/AdminServer/banlist.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'tracker/AdminServer/banlist.h')
| -rw-r--r-- | tracker/AdminServer/banlist.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/tracker/AdminServer/banlist.h b/tracker/AdminServer/banlist.h new file mode 100644 index 0000000..a47ec52 --- /dev/null +++ b/tracker/AdminServer/banlist.h @@ -0,0 +1,68 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//============================================================================= + +#ifndef BANLIST_H +#define BANLIST_H +#ifdef _WIN32 +#pragma once +#endif + +#include "ban.h" +#include "netadr.h" +#include "utlvector.h" +#include "playermsghandler.h" +#include "Iresponse.h" + +class CSocket; +class IResponse; + + +class CBanList: public IResponse +{ +public: + + CBanList(IResponse *target,serveritem_t &server, const char *rconPassword); + ~CBanList(); + + // send an rcon command to a server + void SendQuery(); + + void Refresh(); + + bool IsRefreshing(); + serveritem_t &GetServer(); + void RunFrame(); + + CUtlVector<Bans_t> *GetBanList(); + bool NewBanList(); + + void ServerResponded(); + + // called when a server response has timed out + void ServerFailedToRespond(); + + void SetPassword(const char *newPass); + + +private: + + serveritem_t m_Server; + CUtlVector<Bans_t> m_BanList; + + IResponse *m_pResponseTarget; + CRcon *m_pRcon; + + bool m_bIsRefreshing; + bool m_bGotIPs; + bool m_bNewBanList; + bool m_bRconFailed; + char m_szRconPassword[100]; + +}; + + +#endif // BANLIST_H
\ No newline at end of file |