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.

57 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: 09/11/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgReportSocketServer.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of LgReportSocketServer.cpp
  13. //----------------------------------------------------------------------------
  14. // LgReportSocketServer.cpp: implementation of the CLgReportSocketServer class.
  15. //
  16. //////////////////////////////////////////////////////////////////////
  17. #include "stdafx.h"
  18. #include "LgReportSocketServer.h"
  19. #include "LgReportSocketServerConnection.h"
  20. #ifdef _DEBUG
  21. #undef THIS_FILE
  22. static char THIS_FILE[]=__FILE__;
  23. #define new DEBUG_NEW
  24. #endif
  25. //////////////////////////////////////////////////////////////////////
  26. // Construction/Destruction
  27. //////////////////////////////////////////////////////////////////////
  28. CLgReportSocketServer::CLgReportSocketServer()
  29. {
  30. LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CLgReportSocketServer::CLgReportSocketServer") );
  31. }
  32. CLgReportSocketServer::~CLgReportSocketServer()
  33. {
  34. Destroy();
  35. LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CLgReportSocketServer::~CLgReportSocketServer") );
  36. }
  37. BOOL CLgReportSocketServer::Create( WORD wPort )
  38. {
  39. return CLgSocketServer<CLgReportSocket>::Create( wPort );
  40. }
  41. CLgSocketServerConnection<CLgReportSocket>* CLgReportSocketServer::OnCreateConnection()
  42. {
  43. return new CLgReportSocketServerConnection( this );
  44. }
  45. int CLgReportSocketServer::Send2( PVOID pConnection, const void* lpBuf1, int nBufLen1, const void* lpBuf2, int nBufLen2 )
  46. {
  47. return reinterpret_cast<CLgReportSocketServerConnection*>( pConnection )->Send2( lpBuf1, nBufLen1, lpBuf2, nBufLen2 );
  48. }