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.5 KiB
52 lines
1.5 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgRemoteServerTcpIp.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of LgRemoteServerTcpIp.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __VIDEO__SERVER__H__INCLUDED__
|
|
#define __VIDEO__SERVER__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "LgTcpPacket.h"
|
|
#include "LgRemoteSocket.h"
|
|
#include "LgRemoteInterface.h"
|
|
#include "..\..\LgLib\Socket\LgSocketServer.h"
|
|
|
|
class CLgRemoteServerTcpIpSession;
|
|
class CLgRemoteServerTcpIpConnection;
|
|
|
|
class CLgRemoteServerTcpIp :
|
|
public CLgSocketServer<CLgRemoteSocket>
|
|
{
|
|
public:
|
|
CLgRemoteServerTcpIp();
|
|
virtual ~CLgRemoteServerTcpIp();
|
|
|
|
public:
|
|
void Destroy();
|
|
|
|
public:
|
|
BOOL AssignSession( CLgRemoteServerTcpIpConnection*, PINT pSessionID, BYTE eConnectionType, BYTE eSessionType );
|
|
BOOL GetSessionList( BYTE eSessionType, LG_TCP_PACKET_SESSION_INFO::PSESSION_INFO_DATA* ppSessionInfo, PINT pSessionInfoSize );
|
|
|
|
private:
|
|
virtual void OnDeleteConnection( CLgSocketServerConnection<CLgRemoteSocket>* );
|
|
virtual CLgSocketServerConnection<CLgRemoteSocket>* OnCreateConnection();
|
|
|
|
private:
|
|
CLgArrayP<CLgRemoteServerTcpIpSession*> m_SessionArray;
|
|
CLgArrayP<CLgRemoteServerTcpIpConnection*> m_ConnectionArray;
|
|
};
|
|
|
|
#endif
|