blob: a7b17617122226ade172b19a16287b2fb5907ee2 (
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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#ifndef LOGMSGHANDLER_H
#define LOGMSGHANDLER_H
#ifdef _WIN32
#pragma once
#endif
#include "Socket.h"
#include "utlvector.h"
#include "player.h"
#include "rcon.h"
//-----------------------------------------------------------------------------
// Purpose: Socket handler for pinging internet servers
//-----------------------------------------------------------------------------
class CLogMsgHandlerDetails : public CMsgHandler
{
public:
CLogMsgHandlerDetails(IResponse *baseobject, HANDLERTYPE type, void *typeinfo = NULL);
~CLogMsgHandlerDetails();
virtual bool Process(netadr_t *from, CMsgBuffer *msg);
// indicates if a new message has arrived
bool NewMessage();
// returns the text of the last message recieved
const char *GetBuf();
private:
IResponse *m_pLogList;
bool m_bNewMessage;
char message[512];
};
#endif // LOGMSGHANDLER_H
|