예제 #1
0
 void OnDisable()
 {
     if (m_Sender.PortOpen)
     {
         m_Sender.Close();
     }
 }
예제 #2
0
 protected override void OnDisable()
 {
     base.OnDisable();
     if (m_Listener.PortOpen)
     {
         m_Listener.Close();
     }
 }
예제 #3
0
 private void OnDestroy()
 {
     if (artnet == null)
     {
         return;
     }
     artnet.Close();
 }
예제 #4
0
 static void OnProcessExit(object sender, EventArgs e)
 {
     config.Save();
     if (artNet != null)
     {
         artNet.Close();
     }
     gsl.Stop();
 }
예제 #5
0
 void OnDisable()
 {
     artnet.Close();
     SaveDataMap();
     if (dMX != null)
     {
         dMX.Quit();
         dMX = null;
     }
 }
예제 #6
0
 public void Stop()
 {
     if (reliableSocket != null)
     {
         reliableSocket.Dispose();
     }
     if (socket != null)
     {
         socket.Close();
     }
 }
 private void OnDestroy()
 {
     artnet.Close();
 }
예제 #8
0
 public void CloseSocket()
 {
     socket.Close();
     socket.Dispose();
     socketClosed = true;
 }