public TcpConnectionManager(IDevice dev, IConnection connection)
        {
            Connection = connection;
            //_tcpConnection = (ITcpConnection)Connection;
            var device = (Device) dev;

            TcpCommandHandler = new TcpCommandHandler(this,device);

            ((ITcpConnection)Connection).Connect();

            _listenThread = new Thread(ProcessCommands);
            _listenThread.Start();
        }
Пример #2
0
        public TcpConnectionManager(IDevice dev, IConnection connection)
        {
            Connection = connection;
            //_tcpConnection = (ITcpConnection)Connection;
            var device = (Device)dev;

            TcpCommandHandler = new TcpCommandHandler(this, device);

            ((ITcpConnection)Connection).Connect();


            _listenThread = new Thread(ProcessCommands);
            _listenThread.Start();
        }