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.

30 lines
718 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef IRESPONSE_H
  8. #define IRESPONSE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. //-----------------------------------------------------------------------------
  13. // Purpose: Callback interface for server updates
  14. //-----------------------------------------------------------------------------
  15. class IResponse
  16. {
  17. public:
  18. // called when the server has successfully responded
  19. virtual void ServerResponded() = 0;
  20. // called when a server response has timed out
  21. virtual void ServerFailedToRespond() = 0;
  22. };
  23. #endif // IRESPONSE_H