Esempio n. 1
0
        public void Start()
        {
            foreach (string clientPortAlias in _configuration.LocalPortAliases)
            {
                Configuration.LrmConfiguration lrmConfiguration = _configuration.Lrms[clientPortAlias];
                _lrmPorts.Add(clientPortAlias,
                              new LinkResourceManager(clientPortAlias,
                                                      lrmConfiguration.RemotePortAlias,
                                                      lrmConfiguration.ServerAddress,
                                                      lrmConfiguration.LrmLinkConnectionRequestLocalPort,
                                                      lrmConfiguration.LrmLinkConnectionRequestRemoteAddress,
                                                      lrmConfiguration.LrmLinkConnectionRequestRemotePort,
                                                      lrmConfiguration.RcLocalTopologyRemoteAddress,
                                                      lrmConfiguration.RcLocalTopologyRemotePort));

                _clientPorts.Add(clientPortAlias, _clientClientPortFactory.GetPort(clientPortAlias));
                _clientPorts[clientPortAlias].ConnectPermanentlyToServer(new EonPacket.Builder().SetSrcPort(clientPortAlias).Build());
                _clientPorts[clientPortAlias].RegisterReceiveMessageEvent(_packetForwarder.ForwardPacket);
                _clientPorts[clientPortAlias].StartReceiving();

                _lrmPorts[clientPortAlias].Listen();
                _lrmPorts[clientPortAlias].SendLocalTopologyPacketAfterWakeUp();
            }

            _packetForwarder.SetClientPorts(_clientPorts);

            _fibInsertPort.Listen();

            ManualResetEvent allDone = new ManualResetEvent(false);

            allDone.WaitOne();
        }
Esempio n. 2
0
 public void Start()
 {
     LOG.Debug("CableCloud started");
     _packetForwarder.SetClientPorts(_clientWorkers);
     _serverPort.RegisterRegisterConnectionDelegate(RegisterWorker);
     _serverPort.Listen();
 }
Esempio n. 3
0
 public void Start()
 {
     LOG.Info("CableCloud started");
     _packetForwarder.SetClientPorts(_clientWorkers);
     _listener.RegisterWorkerConnectionEvent(RegisterWorker);
     _listener.Listen();
 }
        public void Start()
        {
            _managementPort.Connect();
            _managementPort.RegisterReceiveMessageEvent(_packetForwarder.ConfigureFromManagementSystem);
            _managementPort.StartReceiving();

            foreach (string clientPortAlias in _configuration.ClientPortAliases)
            {
                _clientPorts.Add(clientPortAlias, _clientPortFactory.GetPort(clientPortAlias));
                _clientPorts[clientPortAlias].Connect();
                _clientPorts[clientPortAlias].RegisterReceiveMessageEvent(_packetForwarder.ForwardPacket);
                _clientPorts[clientPortAlias].StartReceiving();
            }

            _packetForwarder.SetClientPorts(_clientPorts);

            ManualResetEvent allDone = new ManualResetEvent(false);

            allDone.WaitOne();
        }