public PeerProcessor() { _b = Bridge.GetBridge(); _owner = new ResponseSystemAccount(); _peerList = new List<Person>(); _selectedPeer = new Person(); //_pendingPeerRequests = new Dictionary<uint, RequestPeers.SetOption>(); }
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"); }
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(); }
/// <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; }
public StreamProcessor() { _b = Bridge.GetBridge(); }
public ChatProcessor() { _b = Bridge.GetBridge(); _chatLobbies = new Dictionary<string, GuiChatLobby>(); _isRegistered = false; _reDrawChat = false; }
public Processor() { _b = Bridge.GetBridge(); }