Old fashion design for PC-104
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.

54 lines
1.3 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: SocketMD.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of SocketMD.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __SOCKET__LGS__H__INCLUDED__
  15. #define __SOCKET__LGS__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "EventQueue.h"
  20. #include "DeviceMD.h"
  21. #include "SensorLGS.h"
  22. #include "Socket.h"
  23. #include "..\..\LgLib\Net\LgNetSocketMD.h"
  24. class CSocketMD :
  25. public CSocket ,
  26. public CLgNetSocketMD
  27. {
  28. public:
  29. CSocketMD();
  30. virtual ~CSocketMD();
  31. public:
  32. BOOL Create( CSensorArray* pSensorArray, LPCTSTR pPort, INT nBaudRate, BOOL bSpyMode );
  33. private:
  34. virtual void CommandLoopStart();
  35. virtual void CommandLoopStop();
  36. protected:
  37. virtual __int64 GetFailure() { return CLgNetSocketMD::GetFailureCount().QuadPart; }
  38. virtual __int64 GetSuccess() { return CLgNetSocketMD::GetSuccessCount().QuadPart; }
  39. private:
  40. BOOL m_bRunning;
  41. protected:
  42. friend class CDeviceLGSm;
  43. void Resume();
  44. };
  45. #endif