예제 #1
0
파일: Form1.cs 프로젝트: The-XOR/oscServer
        private void start()
        {
            int inP, outP;

            if (osc == null && int.TryParse(outPort.Text, out outP) && int.TryParse(inPort.Text, out inP))
            {
                osc = new OSCDriver();
                if (!osc.Start(destAddress.Text, inP, outP))
                {
                    osc = null;
                }
                else
                {
                    Setup s = new Setup();
                    s.destAddress = destAddress.Text;
                    s.destPort    = outPort.Text;
                    s.listenPort  = inPort.Text;
                    s.Save();
                }
            }
        }
예제 #2
0
파일: Form1.cs 프로젝트: The-XOR/oscServer
 private void stop()
 {
     osc?.Stop();
     osc = null;
 }