예제 #1
0
        private NovaServer()
        {
            Network = new NetworkServer(0);

            NovaManager = new NovaManager(Network);
            LiveControlManager = new LiveControlManager(Network);
        }
예제 #2
0
        private NovaClient()
        {
            Network = new NetworkClient();

            NovaManager        = new NovaManager(Network);
            LiveControlManager = new LiveControlManager(Network);
        }
예제 #3
0
        private NovaServer()
        {
            Network = new NetworkServer(0);

            NovaManager        = new NovaManager(Network);
            LiveControlManager = new LiveControlManager(Network);
        }
예제 #4
0
        private NovaClient()
        {
            Network = new NetworkClient();

            NovaManager = new NovaManager(Network);
            LiveControlManager = new LiveControlManager(Network);
        }
예제 #5
0
파일: FormMain.cs 프로젝트: A4Zen/DXGI
        private async void FormMain_Shown(object sender, EventArgs e)
        {
            PasswordGeneratedEventArgs passArgs = await NovaManager.GeneratePassword();

            LabelPassword.Text = passArgs.NewPassword;
            IntroducerRegistrationResponsedEventArgs regArgs = await NovaManager.RegisterWithIntroducerAsTask();

            LabelNovaId.Text = regArgs.NovaId;

            CheckMirrorDriverExists();
        }
예제 #6
0
        public async Task InitNetworkManagerServer()
        {
            NovaManagerServer        = Managers.NovaServer.Instance.NovaManager;
            LiveControlManagerServer = Managers.NovaServer.Instance.LiveControlManager;

            NovaManagerServer.OnIntroducerRegistrationResponded += NovaManager_OnIntroducerRegistrationResponded;
            NovaManagerServer.OnNewPasswordGenerated            += new EventHandler <PasswordGeneratedEventArgs>(ServerManager_OnNewPasswordGenerated);
            NovaManagerServer.Network.OnConnected += new EventHandler <Network.ConnectedEventArgs>(Network_OnConnected);

            PasswordGeneratedEventArgs passArgs = await NovaManagerServer.GeneratePassword();

            //LabelPassword.Content = passArgs.NewPassword;
            IntroducerRegistrationResponsedEventArgs regArgs = await NovaManagerServer.RegisterWithIntroducerAsTask();

            //LabelNovaId.Content = regArgs.NovaId;
            Status.Content = "Host is live";
        }
예제 #7
0
파일: FormMain.cs 프로젝트: A4Zen/DXGI
 private void Timer_KeepAlive_Tick(object sender, EventArgs e)
 {
     NovaManager.SendKeepAliveMessage();
 }
예제 #8
0
 private NovaIntroducer()
 {
     Network     = new NetworkServer(16168);
     NovaManager = new NovaManager(Network);
 }
예제 #9
0
 private NovaIntroducer()
 {
     Network = new NetworkServer(16168);
     NovaManager = new NovaManager(Network);            
 }