tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsSOCKSIOLayer.h (776B)


      1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
      2 *
      3 * This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef nsSOCKSIOLayer_h__
      8 #define nsSOCKSIOLayer_h__
      9 
     10 #include "prio.h"
     11 #include "nscore.h"
     12 #include "nsIProxyInfo.h"
     13 
     14 nsresult nsSOCKSIOLayerAddToSocket(int32_t family, const char* host,
     15                                   int32_t port, nsIProxyInfo* proxyInfo,
     16                                   int32_t socksVersion, uint32_t flags,
     17                                   uint32_t tlsFlags, PRFileDesc* fd);
     18 
     19 bool IsHostLocalTarget(const nsACString& aHost);
     20 
     21 #endif /* nsSOCKSIOLayer_h__ */