コード例 #1
0
ファイル: Form1.cs プロジェクト: techlemur/VMosc
        public Form1()
        {
            InitializeComponent();
            //System.Threading.Thread t;
            //Run = true;
            //t = new System.Threading.Thread(DoThisAllTheTime);
            //t.Start();

            //int x = Convert.ToInt32(textBox1.Text);
            //textBox1.Text = Properties.Settings.Default.portIn.ToString();
            //textBox2.Text = Properties.Settings.Default.portOut.ToString();
            //textBox3.Text = Properties.Settings.Default.broadcastIP.ToString();

            vm = new VmClient();

            IPAddress broadcast;
            //Console.WriteLine(Properties.Settings.Default.portIn.ToString());
            //Console.WriteLine(Properties.Settings.Default.portOut.ToString());
            //Console.WriteLine(Properties.Settings.Default.broadcastIP.ToString());

            bool flag = IPAddress.TryParse(Properties.Settings.Default.broadcastIP, out broadcast);

            if (!flag)
            {
                Properties.Settings.Default.broadcastIP = "192.168.0.255";
                textBox3.Text = "192.168.0.255";
                Properties.Settings.Default.Save();
                broadcast = IPAddress.Parse(Properties.Settings.Default.broadcastIP);
            }
            oscSender = new SharpOSC.UDPSender(broadcast.ToString(), Properties.Settings.Default.portOut);
        }
コード例 #2
0
        public Form1()
        {
            InitializeComponent();
            //System.Threading.Thread t;
            //Run = true;
            //t = new System.Threading.Thread(DoThisAllTheTime);
            //t.Start();

            //int x = Convert.ToInt32(textBox1.Text);
            textBox1.Text = Properties.Settings.Default.portIn.ToString();
            textBox2.Text = Properties.Settings.Default.portOut.ToString();


            vm = new VmClient();
            IPAddress broadcast = IPAddress.Parse("10.0.3.255");

            oscSender = new SharpOSC.UDPSender(broadcast.ToString(), Properties.Settings.Default.portOut);
        }