KinectDaemon.Server.Server C# (CSharp) Method

Server() public method

public Server ( ) : System
return System
        public Server()
        {
            _kinect = new Kinect();

            //force kinect to be attached when starting the server or else don't bother spawning worker thread.
            if (!_kinect.Start())
            {
                IsKinectKinected = false;
                return;
            }
            IsKinectKinected = true;

            this._tcpListener = new TcpListener(IPAddress.Any, 3000);
            this._listenThread = new Thread(new ThreadStart(ListenForClients));
            this._listenThread.Start();
        }