mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-23 21:34:45 +00:00
[net, trivial] remove using namespace std pollution in netbase.cpp
This commit is contained in:
parent
49b22928ee
commit
d6922aad2c
@ -35,8 +35,6 @@
|
|||||||
#define MSG_NOSIGNAL 0
|
#define MSG_NOSIGNAL 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
static proxyType proxyInfo[NET_MAX];
|
static proxyType proxyInfo[NET_MAX];
|
||||||
static proxyType nameProxy;
|
static proxyType nameProxy;
|
||||||
@ -597,13 +595,13 @@ bool ConnectSocket(const CService &addrDest, SOCKET& hSocketRet, int nTimeout, b
|
|||||||
|
|
||||||
bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest, int portDefault, int nTimeout, bool *outProxyConnectionFailed)
|
bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest, int portDefault, int nTimeout, bool *outProxyConnectionFailed)
|
||||||
{
|
{
|
||||||
string strDest;
|
std::string strDest;
|
||||||
int port = portDefault;
|
int port = portDefault;
|
||||||
|
|
||||||
if (outProxyConnectionFailed)
|
if (outProxyConnectionFailed)
|
||||||
*outProxyConnectionFailed = false;
|
*outProxyConnectionFailed = false;
|
||||||
|
|
||||||
SplitHostPort(string(pszDest), port, strDest);
|
SplitHostPort(std::string(pszDest), port, strDest);
|
||||||
|
|
||||||
proxyType nameProxy;
|
proxyType nameProxy;
|
||||||
GetNameProxy(nameProxy);
|
GetNameProxy(nameProxy);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user