Example #1
0
        public PeerProcessor()
        {
            _b = Bridge.GetBridge();

            _owner = new ResponseSystemAccount();
            _peerList = new List<Person>();
            _selectedPeer = new Person();
            //_pendingPeerRequests = new Dictionary<uint, RequestPeers.SetOption>();
        }
Example #2
0
        public PeerProcessor()
        {
            _b = Bridge.GetBridge();

            _owner = new ResponseSystemAccount();
            _peerList = new List<Person>();
            _selectedPeer = new Person();
            //_pendingPeerRequests = new Dictionary<uint, RequestPeers.SetOption>();
            _lookup = new LookupService("GeoLiteCity.dat");
            _lookup2 = new LookupService("GeoIPASNum.dat");
        }
Example #3
0
        public MainForm()
        {
            InitializeComponent();
            cb_con.CheckState = CheckState.Unchecked;

            _b = Bridge.GetBridge(this); // first initialisation of Bridge -> need gui
            _b.RPC.EventOccurred += EventFromThread;
            _b.RPC.ReceivedMsg += ProcessMsgFromThread;

            _loadSaveHandler = new LoadSaveHandler();
            _log = new Log();
            _log.NewSession();
            _tickCounter = 0;

            AddSpeedOptions(); // add options _before_ loading settings!
            LoadSettings();
        }
Example #4
0
        /// <summary>
        /// This function will return always the same bridge.
        /// </summary>
        /// <param name="gui">gui only needs to be set on the first call!</param>
        /// <returns>returns (the one and only) bridge</returns>
        public static Bridge GetBridge(MainForm gui = null)
        {
            if (_b == null)
                if (gui != null)
                {
                    _b = new Bridge(gui);
                    InitBridge();
                }
                else
                    throw new Exception("need GUI to initialize bridge");

            return _b;
        }
Example #5
0
 public StreamProcessor()
 {
     _b = Bridge.GetBridge();
 }
Example #6
0
        public ChatProcessor()
        {
            _b = Bridge.GetBridge();

            _chatLobbies = new Dictionary<string, GuiChatLobby>();
            _isRegistered = false;
            _reDrawChat = false;
        }
Example #7
0
 public Processor()
 {
     _b = Bridge.GetBridge();
 }