Beispiel #1
0
 void ServerCommandEvent(object sender, RIOXServer.CommandEventArgs e)
 {
     // command received
     Console.WriteLine("CommandEvent fired");
     if (e.Command == "VFOA")
         Invoke((MethodInvoker)delegate { txtVFOA.Text = e.Data; });
 }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     _server = new RIOXServer(_data, System.Net.IPAddress.Loopback, 1234);
     _server.CommandEvent += ServerCommandEvent;
     _server.ClientConnectedEvent += new RIOXServer.ClientEventHandler(_server_ClientConnectedEvent);
     _server.ClientDisconnectedEvent += new RIOXServer.ClientEventHandler(_server_ClientDisconnectedEvent);
     _data.PropertyChanged += RadioPropertyChanged;
     _server.SendUpdatesAtInterval = false;
     _server.Start();
     TTick(null,null);
     Console.WriteLine("Server started");
 }
Beispiel #3
0
 void _server_ClientDisconnectedEvent(object sender, RIOXServer.ClientEventArgs e)
 {
Beispiel #4
0
 void _server_ClientConnectedEvent(object sender, RIOXServer.ClientEventArgs e)
 {
     MessageBox.Show("Client connected");
 }