//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: LgNetSocketPTZTKS576.cpp // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Source file of LgNetSocketPTZTKS576.cpp //---------------------------------------------------------------------------- #include "stdafx.h" #include "LgNetSocketPTZTKS576.h" CLgNetSocketPTZTKS576::CLgNetSocketPTZTKS576() { } CLgNetSocketPTZTKS576::~CLgNetSocketPTZTKS576() { Destroy(); // unlink all linked devices CLgLinkP::Unlink(); } BOOL CLgNetSocketPTZTKS576::Create( LPCTSTR pCommPort, BOOL bDemo ) { Destroy(); if( !bDemo ) { if( !m_Connection.Create( pCommPort, 9600, 8, EVENPARITY, ONESTOPBIT, 1024, 1024 ) ) return FALSE; if( !m_Protocol.Create( &m_Connection ) ) return FALSE; } if( !CLgNetSocket::Create( &m_Protocol ) ) return FALSE; return TRUE; } void CLgNetSocketPTZTKS576::Destroy() { CLgNetSocket::Destroy(); m_Protocol.Destroy(); m_Connection.Destroy(); }