public SocksTunnel(SocksClient p, SocksRequest req, int packetSize) { RemoteClient = new TcpClient(new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp), _packetSize); Client = p; Req = req; _packetSize = packetSize; }
public HttpsTunnel(TcpClient client, string host, X509Certificate2 cert) { _client = client; _host = host; _certificate = cert; _ssl = new SslStream(new NetworkStream(client.Sock, true), false); }
public HttpClient(TcpClient client) { Client = client; }