コード例 #1
0
ファイル: VRClient.cs プロジェクト: k4b/VRFSClient
        public VRClient()
        {
            readAndSetHosts();
            readAndSetParameters();
            primary = replicaList[0];
            viewNumber = 1;
            requestNumber = 0;

            Console.WriteLine(identify());
            messageProcessor = new MessageProcessor();
            proxy = new VRProxy(primary.address, messageProcessor);
            commandProcessor = new CommandProcessor(this, proxy);
            proxy.commandProcessor = commandProcessor;
            messageProcessor.commandProcessor = commandProcessor;
            commandProcessor.startProcessing();
        }
コード例 #2
0
ファイル: CommandProcessor.cs プロジェクト: k4b/VRFSClient
 public CommandProcessor(VRClient client, VRProxy proxy)
 {
     this.client = client;
     this.proxy = proxy;
     isRunning = true;
 }