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.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: LgNetSocket.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of LgNetSocket.h
//----------------------------------------------------------------------------
#ifndef __LG__NET__SOCKET__H__INCLUDED__
#define __LG__NET__SOCKET__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
#include "LgNetObject.h"
#include "..\Thread.h"
#include "..\Comm\Protocol.h"
class CLgNetSocketDevice;
class CLgNetSocket : public CLgNetObject, public CLgLinkP<CLgNetSocket,CLgNetSocketDevice>, private CLgThread{public: CLgNetSocket(); virtual ~CLgNetSocket();
public: BOOL Create( CProtocol *pProtocol ); BOOL Pause( BOOL bPause ); void Destroy();
public: virtual BOOL SetBaudrate( DWORD nBaudrate ) { return FALSE; }
public: virtual BOOL Link( CLgLink<CLgNetSocketDevice,CLgNetSocket>* );
protected: virtual BOOL OnTransaction(); BOOL OnTransaction_();
protected: virtual DWORD ThreadProc();
public: LARGE_INTEGER& GetFailureCount() { return m_liFailureCount; } LARGE_INTEGER& GetSuccessCount() { return m_liSuccessCount; }
private: CLgEvent m_AttachEvent; CLgEvent m_PauseEvent; BOOL m_bPause; INT m_nCurrentDevice;
protected: CProtocol *m_pProtocol; LARGE_INTEGER m_liFailureCount; LARGE_INTEGER m_liSuccessCount;};
#endif
|