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.
 
 
 
 
 

52 lines
1.8 KiB

//----------------------------------------------------------------------------
// 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<CLgRemoteServerTcpIpSession,CLgRemoteServerTcpIpConnection,CLgRemoteServerTcpIpConnectionMaster>,
public CLgLinkP<CLgRemoteServerTcpIpSession,CLgRemoteServerTcpIpConnection,CLgRemoteServerTcpIpConnectionSlave>
{
public:
typedef CLgLinkP<CLgRemoteServerTcpIpSession,CLgRemoteServerTcpIpConnection,CLgRemoteServerTcpIpConnectionMaster> SessionToConnectionMasterLinkP;
typedef CLgLinkP<CLgRemoteServerTcpIpSession,CLgRemoteServerTcpIpConnection,CLgRemoteServerTcpIpConnectionSlave> 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