Пример #1
0
        override public void UpdateRemoteTAs(IList <TransportAddress> tas_to_add)
        {
            base.UpdateRemoteTAs(tas_to_add);
            ConnectionState cs = ConState;

            if (cs == ConnectionState.SeekingConnections || cs == ConnectionState.Joining)
            {
                _leafco.Activate();
            }
        }
Пример #2
0
        /**
         * Connect to the network.  This informs all the ConnectionOverlord objects
         * to do their thing.  Announce runs in a new thread returning context back
         * to the caller.
         */
        override public void Connect()
        {
            base.Connect();
            StartAllEdgeListeners();

            _leafco.IsActive = true;
            _snco.IsActive   = true;
            _ssco.IsActive   = true;
            _cco.IsActive    = true;
            _mco.IsActive    = true;

#if !BRUNET_SIMULATOR
            _localco.IsActive = true;
            _leafco.Activate();
            _ssco.Activate();
            _snco.Activate();
            _cco.Activate();
            _localco.Activate();
            _mco.Activate();
            AnnounceThread();
#endif
        }