コード例 #1
0
ファイル: Program.cs プロジェクト: GlennGeenen/kinectbody
        static void Main(string[] args)
        {
            Console.WriteLine("Starting the server..");

            KinectController kinectController = new KinectController();

            m_server = new KinectServer();

            kinectController.KinectReceivedBody += KinectReceivedBody;

            Console.WriteLine("Server started. Press any key to exit...");
            Console.Read();

            m_server.stop();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            KinectServer s = new KinectServer();

            KinectController c = new KinectController();

            c.OnKinectReceivedBody += (o, e) => {
                s.Broadcast(e.Skeleton);
            };

            s.Start();

            Console.WriteLine("Kinect 서버가 시작되었습니다.");
            Console.WriteLine("아무키를 눌러 서버를 종료할 수 있습니다.");
            Console.ReadKey();

            s.Stop();
        }