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.

32 lines
955 B

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef NET_WS_QUEUED_PACKET_SENDER_H
  7. #define NET_WS_QUEUED_PACKET_SENDER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. // Used to match against certain debug values of cvars.
  12. #define NET_QUEUED_PACKET_THREAD_DEBUG_VALUE 581304
  13. class INetChannel;
  14. class IQueuedPacketSender
  15. {
  16. public:
  17. virtual bool Setup() = 0;
  18. virtual void Shutdown() = 0;
  19. virtual bool IsRunning() = 0;
  20. virtual void ClearQueuedPacketsForChannel( INetChannel *pChan ) = 0;
  21. virtual void QueuePacket( INetChannel *pChan, SOCKET s, const char FAR *buf, int len, const ns_address &to, uint32 msecDelay ) = 0;
  22. virtual bool HasQueuedPackets( const INetChannel *pChan ) const = 0;
  23. };
  24. extern IQueuedPacketSender *g_pQueuedPackedSender;
  25. extern ConVar net_queued_packet_thread;
  26. #endif // NET_WS_QUEUED_PACKET_SENDER_H