コード例 #1
0
ファイル: RemoteHosts.cs プロジェクト: mutita/anpr
        public RemoteHosts(APPLICATION_DATA appData, bool IsNullHost)
        {
            m_AppData = appData;
            m_AppData.AddOnClosing(Stop, APPLICATION_DATA.CLOSE_ORDER.FIRST);

            singleton = new object();

            m_IsNullHost = IsNullHost;

            MessageEventHandlers   = new MessageEventHandlersClass(this);
            MessageEventGenerators = new MessageEventGeneratorsClass(this);

            TCPClient = new RCSClientLib.RCSClient(m_AppData);// each host gets its own client connection

            // load up handlers for receiving messages from the TCP Client object

            TCPClient.MessageEventGenerators.OnRxHostName        += MessageEventHandlers.OnRxServerName;
            TCPClient.MessageEventGenerators.OnRxValidAdminPW    += MessageEventHandlers.OnRxValidAdminPassword;
            TCPClient.MessageEventGenerators.OnRxValidViewerPW   += MessageEventHandlers.OnRxValidViewerPassword;
            TCPClient.MessageEventGenerators.OnRxInvalidPassword += MessageEventHandlers.OnRxInvalidPassword;
            TCPClient.MessageEventGenerators.OnRxChannelList     += OnReceiveChannels;
            TCPClient.MessageEventGenerators.OnRxJpeg            += MessageEventHandlers.OnRxJpeg;
            TCPClient.MessageEventGenerators.OnRxHealthStatus    += MessageEventHandlers.OnRxStats;

            RCSProtocol = (RCS_Protocol.RCS_Protocol)m_AppData.RCSProtocol;

            StartHeatlthStatusPolling();
        }
コード例 #2
0
ファイル: RemoteHosts.cs プロジェクト: anndream/anpr-1
        public RemoteHosts(APPLICATION_DATA appData, bool IsNullHost)
        {
            m_AppData = appData;
            m_AppData.AddOnClosing(Stop, APPLICATION_DATA.CLOSE_ORDER.FIRST);

            singleton = new object();

            m_IsNullHost = IsNullHost;

            MessageEventHandlers = new MessageEventHandlersClass(this);
            MessageEventGenerators = new MessageEventGeneratorsClass(this);

            TCPClient = new RCSClientLib.RCSClient(m_AppData);// each host gets its own client connection

            // load up handlers for receiving messages from the TCP Client object

            TCPClient.MessageEventGenerators.OnRxHostName += MessageEventHandlers.OnRxServerName;
            TCPClient.MessageEventGenerators.OnRxValidAdminPW += MessageEventHandlers.OnRxValidAdminPassword;
            TCPClient.MessageEventGenerators.OnRxValidViewerPW += MessageEventHandlers.OnRxValidViewerPassword;
            TCPClient.MessageEventGenerators.OnRxInvalidPassword += MessageEventHandlers.OnRxInvalidPassword;
            TCPClient.MessageEventGenerators.OnRxChannelList += OnReceiveChannels;
            TCPClient.MessageEventGenerators.OnRxJpeg += MessageEventHandlers.OnRxJpeg;
            TCPClient.MessageEventGenerators.OnRxHealthStatus += MessageEventHandlers.OnRxStats;

            RCSProtocol = (RCS_Protocol.RCS_Protocol) m_AppData.RCSProtocol;

            StartHeatlthStatusPolling();
        }
コード例 #3
0
        public RemoteHosts(APPLICATION_DATA appData)
        {
            m_AppData = appData;
            //    TCPClient =(RCSClient.RCSClient) m_AppData.TCPClient; // for the primary server the user is interacting with

            MessageEventHandlers   = new MessageEventHandlersClass(this);
            MessageEventGenerators = new MessageEventGeneratorsClass(this);

            TCPClient = new RCSClientLib.RCSClient(null, m_AppData);// each host gets its own client connection

            // load up handlers for receiving messages from the TCP Client object

            TCPClient.MessageEventGenerators.OnRxHostName        += MessageEventHandlers.OnRxServerName;
            TCPClient.MessageEventGenerators.OnRxValidAdminPW    += MessageEventHandlers.OnRxValidAdminPassword;
            TCPClient.MessageEventGenerators.OnRxValidViewerPW   += MessageEventHandlers.OnRxValidViewerPassword;
            TCPClient.MessageEventGenerators.OnRxInvalidPassword += MessageEventHandlers.OnRxInvalidPassword;

            RCSProtocol = (RCS_Protocol.RCS_Protocol)m_AppData.RCSProtocol;
        }
コード例 #4
0
ファイル: RemoteHosts.cs プロジェクト: anndream/anpr-1
        public RemoteHosts(APPLICATION_DATA appData)
        {
            m_AppData = appData;
            //    TCPClient =(RCSClient.RCSClient) m_AppData.TCPClient; // for the primary server the user is interacting with

            MessageEventHandlers = new MessageEventHandlersClass(this);
            MessageEventGenerators = new MessageEventGeneratorsClass(this);

            TCPClient = new RCSClientLib.RCSClient(null,m_AppData);// each host gets its own client connection

            // load up handlers for receiving messages from the TCP Client object

            TCPClient.MessageEventGenerators.OnRxHostName += MessageEventHandlers.OnRxServerName;
            TCPClient.MessageEventGenerators.OnRxValidAdminPW += MessageEventHandlers.OnRxValidAdminPassword;
            TCPClient.MessageEventGenerators.OnRxValidViewerPW += MessageEventHandlers.OnRxValidViewerPassword;
            TCPClient.MessageEventGenerators.OnRxInvalidPassword += MessageEventHandlers.OnRxInvalidPassword;

            RCSProtocol = (RCS_Protocol.RCS_Protocol) m_AppData.RCSProtocol;
        }