//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: LgRemoteServerTcpIpSession.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of LgRemoteServerTcpIpSession.h //---------------------------------------------------------------------------- #ifndef __LG__REMOTE__SESSION__H__INCLUDED__ #define __LG__REMOTE__SESSION__H__INCLUDED__ #if _MSC_VER > 1000 #pragma once #endif #include "..\..\LgLib\Templ.h" #include "LgRemoteServerTcpIpConnection.h" class CLgRemoteServerTcpIpSession : public CLgLinkP, public CLgLinkP { public: typedef CLgLinkP SessionToConnectionMasterLinkP; typedef CLgLinkP SessionToConnectionSlaveLinkP; public: CLgRemoteServerTcpIpSession( INT nSessionID, BYTE eSessionType ); virtual ~CLgRemoteServerTcpIpSession(); public: BOOL AddConnection( CLgRemoteServerTcpIpConnection*, BYTE eConnectionType ); BOOL RemoveConnection( CLgRemoteServerTcpIpConnection* ); public: INT GetSessionID() { return m_nSessionID; } BYTE GetSessionType() { return m_eSessionType; } public: BOOL Dispatch( CLgRemoteServerTcpIpConnection*, PLG_TCP_PACKET ); private: INT m_nSessionID; BYTE m_eSessionType; }; #endif