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.

53 lines
1.2 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: LgNetSocketDevice.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgNetSocketDevice.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__NET__SOCKET__DEVICE__H__INCLUDED__
  15. #define __LG__NET__SOCKET__DEVICE__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "LgNetDevice.h"
  20. #include "..\Comm\Protocol.h"
  21. class CLgNetSocket;
  22. class CLgNetSocket;
  23. class CLgNetSocketDevice :
  24. public CLgNetDevice,
  25. public CLgLinkSP<CLgNetSocketDevice,CLgNetSocket>
  26. {
  27. public:
  28. CLgNetSocketDevice();
  29. virtual ~CLgNetSocketDevice();
  30. /*
  31. public:
  32. virtual BOOL AttachSocket( CLgNetSocket *pSocket );
  33. virtual BOOL DetachSocket();
  34. */
  35. public:
  36. virtual BOOL DeviceProc( CLgNetSocket *pSocket, CProtocol *pProtocol ) = 0;
  37. /*
  38. public:
  39. CLgProtectedLinkEx& GetSocketLink() { return m_SocketLink; }
  40. */
  41. /*
  42. private:
  43. CLgProtectedLinkEx m_SocketLink;
  44. */
  45. };
  46. #endif