2018-11-30 19:52:05 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2000-06-16 17:53:22 +00:00
|
|
|
*
|
2012-05-21 11:12:37 +00:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2000-06-16 17:53:22 +00:00
|
|
|
|
2003-09-11 20:32:33 +00:00
|
|
|
#ifndef nsSOCKSIOLayer_h__
|
2009-03-12 03:22:48 +00:00
|
|
|
#define nsSOCKSIOLayer_h__
|
2000-06-16 17:53:22 +00:00
|
|
|
|
|
|
|
#include "prio.h"
|
2003-09-11 20:32:33 +00:00
|
|
|
#include "nscore.h"
|
2015-11-24 21:56:00 +00:00
|
|
|
#include "nsIProxyInfo.h"
|
2000-06-16 17:53:22 +00:00
|
|
|
|
2019-05-01 08:47:10 +00:00
|
|
|
nsresult nsSOCKSIOLayerAddToSocket(int32_t family, const char* host,
|
|
|
|
int32_t port, nsIProxyInfo* proxyInfo,
|
2012-08-22 15:56:38 +00:00
|
|
|
int32_t socksVersion, uint32_t flags,
|
2019-05-01 08:47:10 +00:00
|
|
|
uint32_t tlsFlags, PRFileDesc* fd,
|
|
|
|
nsISupports** info);
|
2000-06-16 17:53:22 +00:00
|
|
|
|
2019-05-01 08:47:10 +00:00
|
|
|
bool IsHostLocalTarget(const nsACString& aHost);
|
2016-09-01 07:48:39 +00:00
|
|
|
|
2003-09-11 20:32:33 +00:00
|
|
|
#endif /* nsSOCKSIOLayer_h__ */
|