Ejemplo n.º 1
0
        /// <summary>
        /// Construct the nexus
        /// </summary>
        public Nexus()
        {
            _Protocol = new Protocol.Protocol(Configuration.ProtocolPort(), this);
            _Search = new Search.Search();
            _Peers = new PeerList();
            _Multicast = new Multicast.Multicast(this, true, true);

            _UsedPorts.Add(8000);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Update the userlist in the Configuration tab
        /// </summary>
        /// <param name="NewList">The new userlist</param>
        public void UpdateUserList(PeerList NewList)
        {
            ListBox_Names.Items.Clear();

            foreach (Peer CurrentPeer in NewList.Peers)
            {
                ListBox_Names.Items.Add(CurrentPeer.UserName);
            }
        }