Example #1
0
        private static void Process()
        {

            if (CurrentClient != null)
            {
                try
                {                    
                    lock (Messages)
                    {
                        if (Messages.Any())
                        {
                            var fr = Messages.First();
                            fr.Send(CurrentClient);
                            Messages.RemoveAt(0);
                        }
                    }

                }
                catch (Exception ex)
                {
                    CurrentClient = null;                    
                }
            }
        }
Example #2
0
 public override void Send(ClientObject o)
 {
     o.wrt.WriteLine("STOPIMG");
     o.wrt.Flush();
 }
Example #3
0
 public override void Send(ClientObject o)
 {
     o.wrt.WriteLine("MOUSEPOS=" + Pos.X + ";" + Pos.Y);
     o.wrt.Flush();
 }
Example #4
0
 public override void Send(ClientObject o)
 {
     o.wrt.WriteLine("MOUSEDOWN=" + Pos.X + ";" + Pos.Y + ";" + (int)Button);
     o.wrt.Flush();
 }
Example #5
0
 public override void Send(ClientObject o)
 {
     o.wrt.WriteLine("MOUSEWHEEL=" + Delta);
     o.wrt.Flush();
 }
Example #6
0
 public override void Send(ClientObject o)
 {
     o.wrt.WriteLine("KEYUP=" + (int)Key.KeyCode + ";" + Key.Alt + ";" + Key.Shift + ";" + Key.Control);
     o.wrt.Flush();
 }
Example #7
0
        public virtual void Send(ClientObject o)
        {

        }