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.

60 lines
1.6 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: LgRemoteClientTcpIp.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgRemoteClientTcpIp.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__REMOTE__CLIENT__TCP__IP__H__INCLUDED__
  15. #define __LG__REMOTE__CLIENT__TCP__IP__H__INCLUDED__
  16. #include "..\..\LgLib\Socket\LgSocketClient.h"
  17. #include "LgTcpPacket.h"
  18. #include "LgRemoteSocket.h"
  19. #include "LgRemoteInterface.h"
  20. class CLgRemoteClientTcpIp :
  21. public CLgSocketClient<CLgRemoteSocket>,
  22. public CLgRemoteInterfaceInfo
  23. {
  24. public:
  25. CLgRemoteClientTcpIp();
  26. virtual ~CLgRemoteClientTcpIp();
  27. public:
  28. BOOL Create( LPCTSTR lpszHostAddress, UINT nHostPort, BYTE eSessionType, BYTE eConnectionType );
  29. virtual void Destroy();
  30. protected:
  31. virtual void OnConnect( int nErrorCode );
  32. virtual void OnClose( int nErrorCode );
  33. private:
  34. virtual void OnPacketConnect( PLG_TCP_PACKET_CONNECT pReceivePacket );
  35. virtual void OnPacketSessionInfo( PLG_TCP_PACKET_SESSION_INFO pReceivePacket );
  36. protected:
  37. INT GetConnectionID() { return m_nConnectionID; }
  38. INT GetSessionID() { return m_nSessionID; }
  39. private:
  40. virtual BOOL DoRemoteInfoTransfer();
  41. private:
  42. TCHAR m_pHostAddress[MAX_PATH];
  43. UINT m_nHostPort;
  44. private:
  45. BYTE m_eConnectionType;
  46. BYTE m_eSessionType;
  47. INT m_nSessionID;
  48. INT m_nConnectionID;
  49. };
  50. #endif