コード例 #1
0
ファイル: SocksTunnel.cs プロジェクト: PleXone2019/DreamBot
 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;
 }
コード例 #2
0
        public HttpsTunnel(TcpClient client, string host, X509Certificate2 cert)
        {
            _client      = client;
            _host        = host;
            _certificate = cert;

            _ssl = new SslStream(new NetworkStream(client.Sock, true), false);
        }
コード例 #3
0
 public HttpClient(TcpClient client)
 {
     Client = client;
 }