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.

47 lines
1.1 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: LgNetSocketCCC.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgNetSocketCCC.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__NET__SOCKET__CCC__H__INCLUDED__
  15. #define __LG__NET__SOCKET__CCC__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "..\Comm\RS232.h"
  20. #include "..\Comm\ProtocolCCC.h"
  21. #include "LgNetSocket.h"
  22. class CLgNetSocketCCC :
  23. public CLgNetSocket
  24. {
  25. public:
  26. CLgNetSocketCCC();
  27. virtual ~CLgNetSocketCCC();
  28. public:
  29. BOOL Create( LPCTSTR pCommPort );
  30. void Destroy();
  31. protected:
  32. virtual BOOL OnTransaction();
  33. protected:
  34. virtual BOOL OnTransactionCCC( PBYTE pReadBuffer, PBYTE pWriteBuffer ) = 0;
  35. private:
  36. CConnectionRS232 m_Connection;
  37. CProtocolCCC m_Protocol;
  38. };
  39. #endif