blob: a47ec527bbf1dcc9d56a5633b6fe33bb1f52707e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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
|