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; } } }
public override void Send(ClientObject o) { o.wrt.WriteLine("STOPIMG"); o.wrt.Flush(); }
public override void Send(ClientObject o) { o.wrt.WriteLine("MOUSEPOS=" + Pos.X + ";" + Pos.Y); o.wrt.Flush(); }
public override void Send(ClientObject o) { o.wrt.WriteLine("MOUSEDOWN=" + Pos.X + ";" + Pos.Y + ";" + (int)Button); o.wrt.Flush(); }
public override void Send(ClientObject o) { o.wrt.WriteLine("MOUSEWHEEL=" + Delta); o.wrt.Flush(); }
public override void Send(ClientObject o) { o.wrt.WriteLine("KEYUP=" + (int)Key.KeyCode + ";" + Key.Alt + ";" + Key.Shift + ";" + Key.Control); o.wrt.Flush(); }
public virtual void Send(ClientObject o) { }