Close() public method

public Close ( ) : void
return void
Esempio n. 1
0
 //
 void TransmitMessage(OSC.NET.OSCMessage _msg)
 {
     if (transmitter != null)
     {
         transmitter.Connect();
         transmitter.Send(_msg);
         transmitter.Close();
     }
 }
Esempio n. 2
0
 private void disconnect()
 {
     if (transmitter != null)
     {
         transmitter.Close();
     }
     if (receiver != null)
     {
         receiver.Close();
     }
     if (listenerThread != null)
     {
         listenerThread.Abort();
     }
     listenerThread = null;
     receiver       = null;
     transmitter    = null;
 }