Counter Strike : Global Offensive Source Code
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.

47 lines
985 B

  1. //===== Copyright � 1996-2009, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. //===========================================================================//
  6. #ifndef MM_NETMGR_H
  7. #define MM_NETMGR_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class CConnectionlessLanMgr;
  12. #include "mm_framework.h"
  13. class CConnectionlessLanMgr : public IConnectionlessPacketHandler
  14. {
  15. //
  16. // IConnectionlessPacketHandler
  17. //
  18. public:
  19. virtual bool ProcessConnectionlessPacket( netpacket_t *packet );
  20. public:
  21. void Update();
  22. void SendPacket( KeyValues *msg, char const *szAddress = NULL, INetSupport::NetworkSocket_t eSock
  23. #ifdef _X360
  24. = INetSupport::NS_SOCK_SYSTEMLINK
  25. #else
  26. = INetSupport::NS_SOCK_CLIENT
  27. #endif
  28. );
  29. KeyValues * UnpackPacket( netpacket_t *packet );
  30. public:
  31. CConnectionlessLanMgr();
  32. ~CConnectionlessLanMgr();
  33. protected:
  34. CUtlBuffer m_buffer;
  35. };
  36. // Match events subscription singleton
  37. extern CConnectionlessLanMgr *g_pConnectionlessLanMgr;
  38. #endif // MM_EVENTS_H