public WebUI(Proxy proxy, ConnectionManager connectionManager) { this.proxy = proxy; this.connectionManager = connectionManager; if (webUI != null) throw new InvalidOperationException ("There can only be one WebUI"); webUI = this; }
/// <summary> /// Start a new session thread for the incoming client. /// </summary> public ProxySession(Socket socket, Proxy proxy, ConnectionManager connectionManager) { this.ClientSocket = socket; this.ClientStream = new NetworkStream (socket, true); this.proxy = proxy; this.connectionManager = connectionManager; thread = new Thread (Run); name = "[Session " + (socket.RemoteEndPoint as IPEndPoint).Port + "]"; thread.Name = name; }
public Proxy(IPAddress address, int port) { this.address = address; this.port = port; this.Browser = new BrowserProxy (this); this.connectionManager = new ConnectionManager (); this.WebUI = new Filters.WebUI (this, this.connectionManager); //Read Settings if (File.Exists (SettingsPath)) { using (Stream s = new FileStream (SettingsPath, FileMode.Open)) { this.Settings = Serializer.Deserialize<Settings> (s); } } else this.Settings = new Settings (); }
public CachedServer(IPEndPoint endpoint, ConnectionManager manager) { this.endpoint = endpoint; this.manager = manager; }