public DeviceConnection(Device device)
        {
            this.device  = device;
            deviceCalls  = DeviceCalls.getInstance();
            ws2Functions = Ws2Functions.getInstance();

            portConnections = new Dictionary <short, PortConnection>();
        }
Ejemplo n.º 2
0
        public PortConnection(short port, Device device)
        {
            this.port   = port;
            this.device = device;

            deviceCalls  = DeviceCalls.getInstance();
            ws2Functions = Ws2Functions.getInstance();

            activeSockets        = new List <Socket>();
            autoResetEventSocket = new AutoResetEvent(false);
        }