2000-07-01 14:25:25 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2000-06-16 21:53:22 +04:00
|
|
|
*
|
2012-05-21 15:12:37 +04: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 21:53:22 +04:00
|
|
|
|
2003-09-12 00:32:33 +04:00
|
|
|
#ifndef nsSOCKSIOLayer_h__
|
2009-03-12 06:22:48 +03:00
|
|
|
#define nsSOCKSIOLayer_h__
|
2000-06-16 21:53:22 +04:00
|
|
|
|
|
|
|
#include "prio.h"
|
2003-09-12 00:32:33 +04:00
|
|
|
#include "nscore.h"
|
2015-11-25 00:56:00 +03:00
|
|
|
#include "nsIProxyInfo.h"
|
2000-06-16 21:53:22 +04:00
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
nsresult nsSOCKSIOLayerAddToSocket(int32_t family,
|
2017-07-06 15:00:35 +03:00
|
|
|
const char *host,
|
2012-08-22 19:56:38 +04:00
|
|
|
int32_t port,
|
2015-11-25 00:56:00 +03:00
|
|
|
nsIProxyInfo *proxyInfo,
|
2012-08-22 19:56:38 +04:00
|
|
|
int32_t socksVersion,
|
|
|
|
uint32_t flags,
|
2017-08-16 22:41:16 +03:00
|
|
|
uint32_t tlsFlags,
|
2017-07-06 15:00:35 +03:00
|
|
|
PRFileDesc *fd,
|
2000-07-01 14:25:25 +04:00
|
|
|
nsISupports **info);
|
2000-06-16 21:53:22 +04:00
|
|
|
|
2016-09-01 10:48:39 +03:00
|
|
|
bool IsHostLocalTarget(const nsACString& aHost);
|
|
|
|
|
2003-09-12 00:32:33 +04:00
|
|
|
#endif /* nsSOCKSIOLayer_h__ */
|