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.4 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: SocketCCC.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of SocketCCC.h
//----------------------------------------------------------------------------
#ifndef __SOCKET__CCC__H__INCLUDED__
#define __SOCKET__CCC__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
#include "..\..\LgLib\LgLink.h"
#include "..\..\LgLib\Thread.h"
#include "..\..\LgLib\Comm\RS232.h"
#include "..\..\LgLib\Comm\ProtocolCCC.h"
#include "..\..\LgLib\Net\LgNetSocketCCC.h"
#include "Socket.h"
class CSensor;
class CSocketCCC :
public CSocket,
private CLgNetSocketCCC
{
public:
CSocketCCC();
virtual ~CSocketCCC();
public:
BOOL Create( CSensorArray* pSensorArray, LPCTSTR pPort );
public:
virtual BOOL OnTransactionCCC( PBYTE pReadBuffer, PBYTE pWriteBuffer );
private:
virtual void CommandLoopStart();
virtual void CommandLoopStop();
protected:
virtual __int64 GetFailure() { return CLgNetSocketCCC::GetFailureCount().QuadPart; }
virtual __int64 GetSuccess() { return CLgNetSocketCCC::GetSuccessCount().QuadPart; }
private:
BOOL m_bRunning;
};
#endif