Start() public method

public Start ( ) : bool
return bool
Ejemplo n.º 1
0
        static void TestKinect()
        {
            Kinect kinect = new Kinect();

            kinect.Start();
            ConsoleKeyInfo cki;

            Console.WriteLine("Kinect, press 'Q' to quit");
            do
            {
                cki = Console.ReadKey();
            } while (cki.Key != ConsoleKey.Q);
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
 static void TestKinect()
 {
     Kinect kinect = new Kinect();
     kinect.Start();
     ConsoleKeyInfo cki;
     Console.WriteLine("Kinect, press 'Q' to quit");
     do
     {
         cki = Console.ReadKey();
     } while (cki.Key != ConsoleKey.Q);
 }