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.5 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: LgRemoteServerTcpIp.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgRemoteServerTcpIp.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __VIDEO__SERVER__H__INCLUDED__
  15. #define __VIDEO__SERVER__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "LgTcpPacket.h"
  20. #include "LgRemoteSocket.h"
  21. #include "LgRemoteInterface.h"
  22. #include "..\..\LgLib\Socket\LgSocketServer.h"
  23. class CLgRemoteServerTcpIpSession;
  24. class CLgRemoteServerTcpIpConnection;
  25. class CLgRemoteServerTcpIp :
  26. public CLgSocketServer<CLgRemoteSocket>
  27. {
  28. public:
  29. CLgRemoteServerTcpIp();
  30. virtual ~CLgRemoteServerTcpIp();
  31. public:
  32. void Destroy();
  33. public:
  34. BOOL AssignSession( CLgRemoteServerTcpIpConnection*, PINT pSessionID, BYTE eConnectionType, BYTE eSessionType );
  35. BOOL GetSessionList( BYTE eSessionType, LG_TCP_PACKET_SESSION_INFO::PSESSION_INFO_DATA* ppSessionInfo, PINT pSessionInfoSize );
  36. private:
  37. virtual void OnDeleteConnection( CLgSocketServerConnection<CLgRemoteSocket>* );
  38. virtual CLgSocketServerConnection<CLgRemoteSocket>* OnCreateConnection();
  39. private:
  40. CLgArrayP<CLgRemoteServerTcpIpSession*> m_SessionArray;
  41. CLgArrayP<CLgRemoteServerTcpIpConnection*> m_ConnectionArray;
  42. };
  43. #endif