Exemplo n.º 1
0
    public HttpSocks5Service(IPEndPoint bindEndPoint, HttpToSocks5 httpToSocks5, Socks5CreateOption socks5CreateOption)
    {
        Requires.NotNullAllowStructs(socks5CreateOption.Address, nameof(socks5CreateOption.Address));

        TcpListener         = new TcpListener(bindEndPoint);
        _httpToSocks5       = httpToSocks5;
        _socks5CreateOption = socks5CreateOption;

        _cts = new CancellationTokenSource();
    }
Exemplo n.º 2
0
 public HttpService(HttpToSocks5 httpToSocks5)
 {
     _httpToSocks5 = httpToSocks5;
 }