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.

52 lines
1.8 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: LgRemoteServerTcpIpSession.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgRemoteServerTcpIpSession.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__REMOTE__SESSION__H__INCLUDED__
  15. #define __LG__REMOTE__SESSION__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "..\..\LgLib\Templ.h"
  20. #include "LgRemoteServerTcpIpConnection.h"
  21. class CLgRemoteServerTcpIpSession :
  22. public CLgLinkP<CLgRemoteServerTcpIpSession,CLgRemoteServerTcpIpConnection,CLgRemoteServerTcpIpConnectionMaster>,
  23. public CLgLinkP<CLgRemoteServerTcpIpSession,CLgRemoteServerTcpIpConnection,CLgRemoteServerTcpIpConnectionSlave>
  24. {
  25. public:
  26. typedef CLgLinkP<CLgRemoteServerTcpIpSession,CLgRemoteServerTcpIpConnection,CLgRemoteServerTcpIpConnectionMaster> SessionToConnectionMasterLinkP;
  27. typedef CLgLinkP<CLgRemoteServerTcpIpSession,CLgRemoteServerTcpIpConnection,CLgRemoteServerTcpIpConnectionSlave> SessionToConnectionSlaveLinkP;
  28. public:
  29. CLgRemoteServerTcpIpSession( INT nSessionID, BYTE eSessionType );
  30. virtual ~CLgRemoteServerTcpIpSession();
  31. public:
  32. BOOL AddConnection( CLgRemoteServerTcpIpConnection*, BYTE eConnectionType );
  33. BOOL RemoveConnection( CLgRemoteServerTcpIpConnection* );
  34. public:
  35. INT GetSessionID() { return m_nSessionID; }
  36. BYTE GetSessionType() { return m_eSessionType; }
  37. public:
  38. BOOL Dispatch( CLgRemoteServerTcpIpConnection*, PLG_TCP_PACKET );
  39. private:
  40. INT m_nSessionID;
  41. BYTE m_eSessionType;
  42. };
  43. #endif