Ejemplo n.º 1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            String host = args.Length == 0 ? "ws://localhost:8080" : args[0];
            // Hardcode the server adress for now.
            ScreenStreamer streamer = new ScreenStreamer(host);

            streamer.Toggle();
            var endlessTask = new TaskCompletionSource <bool>().Task;

            endlessTask.Wait();
        }
Ejemplo n.º 2
0
 public Form1()
 {
     InitializeComponent();
     streamer         = new ScreenStreamer("ws://localhost:8080");
     this.FormClosed += ClosedHandler;
 }