Exemplo n.º 1
0
        public static ScreenshareServer StartNew()
        {
            // NetworkConnectionProvider requires that you tell it what local target to listen
            // to and the maximum number of connections you'll allow.
            var provider = new NetworkConnectionProvider(ScreenshareProtocol.Instance, new Target(Target.AnyIP, 58291), 10);

            var server = new ScreenshareServer(provider);
            server.Start();
            return server;
        }
Exemplo n.º 2
0
        public static ScreenshareServer StartNew()
        {
            // NetworkConnectionProvider requires that you tell it what local target to listen
            // to and the maximum number of connections you'll allow.
            var provider = new NetworkConnectionProvider(ScreenshareProtocol.Instance, new Target(Target.AnyIP, 58291), 10);

            var server = new ScreenshareServer(provider);

            server.Start();
            return(server);
        }
Exemplo n.º 3
0
 private void FormMain_Shown(object sender, EventArgs e)
 {
     Server = ScreenshareServer.StartNew();
     Server.ConnectionMade += Server_ConnectionMade;
     Server.ScreenFrameRequestReceived += Server_ScreenFrameRequestReceived;
 }