//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: Laserguard libraries // SUBSYSTEM: Communication support library // FILE: Protocol.h // AUTHOR: Chizhevskiy Sergey // OVERVIEW // ~~~~~~~~ // Header file of CProtocol //---------------------------------------------------------------------------- #ifndef __PROTOCOL__H__INCLUDED__ #define __PROTOCOL__H__INCLUDED__ #if _MSC_VER > 1000 #pragma once #endif class CProtocol { public: virtual BOOL Write( PBYTE pRequest, INT dwSize, DWORD dwTimeout, BOOL bHost ) = 0; virtual BOOL Read( PBYTE *ppResponse, PINT pSize, DWORD dwTimeout, BOOL bHost ) = 0; public: virtual BOOL Transaction( PBYTE pRequest, INT nRequest, PBYTE *ppResponse, PINT pResponse, DWORD dwTimeout, INT nRetryCount, BOOL bHost ); }; #endif