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.
 
 
 
 
 

60 lines
1.6 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: LgRemoteClientTcpIp.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of LgRemoteClientTcpIp.h
//----------------------------------------------------------------------------
#ifndef __LG__REMOTE__CLIENT__TCP__IP__H__INCLUDED__
#define __LG__REMOTE__CLIENT__TCP__IP__H__INCLUDED__
#include "..\..\LgLib\Socket\LgSocketClient.h"
#include "LgTcpPacket.h"
#include "LgRemoteSocket.h"
#include "LgRemoteInterface.h"
class CLgRemoteClientTcpIp :
public CLgSocketClient<CLgRemoteSocket>,
public CLgRemoteInterfaceInfo
{
public:
CLgRemoteClientTcpIp();
virtual ~CLgRemoteClientTcpIp();
public:
BOOL Create( LPCTSTR lpszHostAddress, UINT nHostPort, BYTE eSessionType, BYTE eConnectionType );
virtual void Destroy();
protected:
virtual void OnConnect( int nErrorCode );
virtual void OnClose( int nErrorCode );
private:
virtual void OnPacketConnect( PLG_TCP_PACKET_CONNECT pReceivePacket );
virtual void OnPacketSessionInfo( PLG_TCP_PACKET_SESSION_INFO pReceivePacket );
protected:
INT GetConnectionID() { return m_nConnectionID; }
INT GetSessionID() { return m_nSessionID; }
private:
virtual BOOL DoRemoteInfoTransfer();
private:
TCHAR m_pHostAddress[MAX_PATH];
UINT m_nHostPort;
private:
BYTE m_eConnectionType;
BYTE m_eSessionType;
INT m_nSessionID;
INT m_nConnectionID;
};
#endif