//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: Device.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of Device.h //---------------------------------------------------------------------------- // Device.h: interface for the CDevice class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_DEVICE_H__B377BC6E_77EB_4C7F_B39F_E984D430A7B1__INCLUDED_) #define AFX_DEVICE_H__B377BC6E_77EB_4C7F_B39F_E984D430A7B1__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CConnection; class CSocket; class CDevice { public: CDevice(); virtual ~CDevice(); public: CSocket *GetSocket() { return m_pSocket; } public: virtual DWORD CompleteIO( CConnection *pConnection ) { return INFINITE; } virtual void SetSocket( CSocket *pSocket ) { m_pSocket = pSocket; } protected: CSocket *m_pSocket; public: INT GetDeviceType() { return m_eDeviceType; } protected: void SetDeviceType( INT eDeviceType ) { m_eDeviceType = eDeviceType; } private: INT m_eDeviceType; }; #endif