コード例 #1
0
 public HttpProxyWorker(IPEndPoint proxyEndPoint, HttpProxy httpProxy)
     : this(new TcpListener(proxyEndPoint), httpProxy)
 {
 }
コード例 #2
0
 /// <summary>
 ///     Create server bound to given hostname and port
 /// </summary>
 /// <param name="hostname">hostname to bind</param>
 /// <param name="port">port to bind</param>
 /// <param name="httpProxy">proxy which will handle incoming requests</param>
 public HttpProxyServer(string hostname, int port, HttpProxy httpProxy)
     : this(new DnsEndPoint(hostname, port, AddressFamily.InterNetwork), httpProxy)
 {
 }
コード例 #3
0
 /// <summary>
 ///     Create server bound to given local endpoint
 /// </summary>
 /// <param name="proxyEndPoint">local endpoint to bind</param>
 /// <param name="httpProxy">proxy which will handle incoming requests</param>
 public HttpProxyServer(DnsEndPoint proxyEndPoint, HttpProxy httpProxy) : this(ToIPEndPoint(proxyEndPoint), httpProxy)
 {
 }
コード例 #4
0
 /// <summary>
 ///     Create server bound to given hostname and random port
 /// </summary>
 /// <param name="hostname">hostname to bind</param>
 /// <param name="httpProxy">proxy which will handle incoming requests</param>
 public HttpProxyServer(string hostname, HttpProxy httpProxy) : this(hostname, 0, httpProxy)
 {
 }