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

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 09/11/2003
// PROJECT:
// SUBSYSTEM:
// FILE: LgReportSocketServer.cpp
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Source file of LgReportSocketServer.cpp
//----------------------------------------------------------------------------
// LgReportSocketServer.cpp: implementation of the CLgReportSocketServer class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "LgReportSocketServer.h"
#include "LgReportSocketServerConnection.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CLgReportSocketServer::CLgReportSocketServer()
{
LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CLgReportSocketServer::CLgReportSocketServer") );
}
CLgReportSocketServer::~CLgReportSocketServer()
{
Destroy();
LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CLgReportSocketServer::~CLgReportSocketServer") );
}
BOOL CLgReportSocketServer::Create( WORD wPort )
{
return CLgSocketServer<CLgReportSocket>::Create( wPort );
}
CLgSocketServerConnection<CLgReportSocket>* CLgReportSocketServer::OnCreateConnection()
{
return new CLgReportSocketServerConnection( this );
}
int CLgReportSocketServer::Send2( PVOID pConnection, const void* lpBuf1, int nBufLen1, const void* lpBuf2, int nBufLen2 )
{
return reinterpret_cast<CLgReportSocketServerConnection*>( pConnection )->Send2( lpBuf1, nBufLen1, lpBuf2, nBufLen2 );
}