Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef LOGMSGHANDLER_H
  8. #define LOGMSGHANDLER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "Socket.h"
  13. #include "utlvector.h"
  14. #include "player.h"
  15. #include "rcon.h"
  16. //-----------------------------------------------------------------------------
  17. // Purpose: Socket handler for pinging internet servers
  18. //-----------------------------------------------------------------------------
  19. class CLogMsgHandlerDetails : public CMsgHandler
  20. {
  21. public:
  22. CLogMsgHandlerDetails(IResponse *baseobject, HANDLERTYPE type, void *typeinfo = NULL);
  23. ~CLogMsgHandlerDetails();
  24. virtual bool Process(netadr_t *from, CMsgBuffer *msg);
  25. // indicates if a new message has arrived
  26. bool NewMessage();
  27. // returns the text of the last message recieved
  28. const char *GetBuf();
  29. private:
  30. IResponse *m_pLogList;
  31. bool m_bNewMessage;
  32. char message[512];
  33. };
  34. #endif // LOGMSGHANDLER_H