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.

41 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: 09/11/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgGatewaySocketServer.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgGatewaySocketServer.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__REPORT__SOCKET__SERVER__H__INCLUDED__
  15. #define __LG__REPORT__SOCKET__SERVER__H__INCLUDED__
  16. #include "..\Socket\LgSocketServer.h"
  17. #include "LgReportSocket.h"
  18. #pragma once
  19. class CLgReportSocketServer :
  20. public CLgSocketServer<CLgReportSocket>
  21. {
  22. public:
  23. CLgReportSocketServer();
  24. virtual ~CLgReportSocketServer();
  25. public:
  26. BOOL Create( WORD wPort );
  27. private:
  28. virtual CLgSocketServerConnection<CLgReportSocket>* OnCreateConnection();
  29. public:
  30. int Send2( PVOID pConnection, const void* lpBuf1, int nBufLen1, const void* lpBuf2, int nBufLen2 );
  31. virtual void DispatchServerPacket( PVOID pConnection, PLG_REPORT_PACKET pPacket ) = 0;
  32. virtual void DispatchServerConnect( PVOID pConnection, BOOL bConnected, LPSOCKADDR_IN pSockAddr ) = 0;
  33. };
  34. #endif