initSession() public static méthode

public static initSession ( ) : void
Résultat void
Exemple #1
0
        /**
         * The TuioClient starts listening to TUIO messages on the configured UDP port
         * All reveived TUIO messages are decoded and the resulting TUIO events are broadcasted to all registered TuioListeners
         */
        public void connect()
        {
            TuioTime.initSession();
            currentTime = new TuioTime();
            currentTime.reset();

            try {
                receiver = new OSCReceiver(port);
                thread   = new Thread(new ThreadStart(listen));
                thread.Start();
                connected = true;
            } catch (Exception e) {
                Console.WriteLine("failed to connect to port " + port);
                Console.WriteLine(e.Message);
            }
        }
Exemple #2
0
        /**
         * The TuioClient starts listening to TUIO messages on the configured UDP port
         * All reveived TUIO messages are decoded and the resulting TUIO events are broadcasted to all registered TuioListeners
         */
        public void connect()
        {
            TuioTime.initSession();
            currentTime = new TuioTime();
            currentTime.reset();

            receiver = new OSCReceiver(port);
            thread   = new Thread(new ThreadStart(listen));

            // HACK : Set listener thread to background added by frog (@rktut)
            thread.IsBackground = true;

            thread.Start();

            connected = true;

            // HACK : Swallowed exception removed by frog (@rktut)
        }
Exemple #3
0
        /**
         * The TuioClient starts listening to TUIO messages on the configured UDP port
         * All reveived TUIO messages are decoded and the resulting TUIO events are broadcasted to all registered TuioListeners
         */
        public void connect()
        {
//			Debug.Log ("tuio client before init session");
            TuioTime.initSession();
            currentTime = new TuioTime();
            currentTime.reset();

            try {
                receiver     = new OSCReceiver(port);
                connected    = true;
                statusString = "Thread Started";
                thread       = new Thread(new ThreadStart(listen));
//				Debug.Log("tuio client before thread start");
                thread.Start();
            } catch (Exception e) {
                Console.WriteLine("failed to connect to port " + port);
                Console.WriteLine(e.Message);
                statusString = "failed to connect to port " + port + " " + e.Message;
//				Debug.Log("ERROR: there was an error trying to connect tuio client");
//				Debug.Log(e.Message);
            }
        }