Cancel() public method

public Cancel ( ) : void
return void
Esempio n. 1
0
    public void Cancel()
    {
        if (oscHandler == null)
        {
            return;
        }

        oscHandler.Cancel();
        oscHandler = null;
    }
Esempio n. 2
0
    //~OscReceiver()
    void OnDestroy()
    {
        if (oscHandler != null)
        {
            oscHandler.Cancel();
        }

        // speed up finalization
        oscHandler = null;
        System.GC.Collect();
    }
 /// <summary>
 /// Shut down OSC connection nicely.
 /// </summary>
 void OnDisable()
 {
     // close OSC UDP socket
     // Debug.Log("closing OSC UDP socket in OnDisable");
     oscHandler.Cancel();
     oscHandler = null;
 }
 void Stop()
 {
     try{
         udp.Close();
         handler.Cancel();
     }catch (System.Exception e) { }
 }
Esempio n. 5
0
 void OnDisable()
 {
     // close UDP socket of the listener
     Debug.Log("Closing UDP socket");
     osc.Cancel();
     osc = null;
 }
    void OnDisable()
    {
        OscMessage msg = Osc.StringToOscMessage("/shutdown");

        osc.Send(msg);
        osc.Cancel();
        osc = null;
    }
Esempio n. 7
0
        protected void OnDisable()
        {
            if (handler != null)
            {
                handler.Cancel();
            }

            // speed up finalization
            handler = null;
            System.GC.Collect();
        }
Esempio n. 8
0
        public void Disconnect()
        {
            if (handler != null)
            {
                handler.Cancel();
            }

            // speed up finalization
            handler = null;
            System.GC.Collect();
        }
    void OnDisable()
    {
        OscMessage onOff = Osc.StringToOscMessage("/onOff " + 2 + " " + 2 + " " + 2 + " " + 2);

        oscHandler.Send(onOff);

        OscMessage ending = Osc.StringToOscMessage("/end 1");

        oscHandler.Send(ending);

        Debug.Log("closing OSC UDP socket in OnDisable");
        oscHandler.Cancel();
        oscHandler = null;
    }
Esempio n. 10
0
 void OnDisable()
 {
     Debug.Log("Closing OSC UDP socket in OnDisable");
     handler.Cancel();
     handler = null;
 }
Esempio n. 11
0
 void onDisable()
 {
     oscHandler.Cancel();
     oscHandler = null;
 }
Esempio n. 12
0
 void OnApplicationQuit()
 {
     Debug.Log("Goodbye");
     oscHandler.Cancel();
 }