Anoncoin  0.9.4
P2P Digital Currency
Functions | Variables
netbase.cpp File Reference
#include "netbase.h"
#include "hash.h"
#include "sync.h"
#include "uint256.h"
#include "util.h"
#include <fcntl.h>
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/algorithm/string/predicate.hpp>
Include dependency graph for netbase.cpp:

Go to the source code of this file.

Functions

enum Network ParseNetwork (std::string net)
 
std::string GetNetworkName (enum Network net)
 
void SplitHostPort (std::string in, int &portOut, std::string &hostOut)
 
bool LookupHost (const char *pszName, std::vector< CNetAddr > &vIP, unsigned int nMaxSolutions, bool fAllowLookup)
 
bool LookupHostNumeric (const char *pszName, std::vector< CNetAddr > &vIP, unsigned int nMaxSolutions)
 
bool Lookup (const char *pszName, std::vector< CService > &vAddr, int portDefault, bool fAllowLookup, unsigned int nMaxSolutions)
 
bool Lookup (const char *pszName, CService &addr, int portDefault, bool fAllowLookup)
 
bool LookupNumeric (const char *pszName, CService &addr, int portDefault)
 
bool SetProxy (enum Network net, CService addrProxy)
 
bool GetProxy (enum Network net, proxyType &proxyInfoOut)
 
bool SetNameProxy (CService addrProxy)
 
bool GetNameProxy (CService &nameProxyOut)
 
bool HaveNameProxy ()
 
bool IsProxy (const CNetAddr &addr)
 
bool ConnectSocket (const CService &addrDest, SOCKET &hSocketRet, int nTimeout)
 
bool ConnectSocketByName (CService &addr, SOCKET &hSocketRet, const char *pszDest, int portDefault, int nTimeout)
 
bool operator== (const CNetAddr &a, const CNetAddr &b)
 
bool operator!= (const CNetAddr &a, const CNetAddr &b)
 
bool operator< (const CNetAddr &a, const CNetAddr &b)
 
bool operator== (const CService &a, const CService &b)
 
bool operator!= (const CService &a, const CService &b)
 
bool operator< (const CService &a, const CService &b)
 
std::string NetworkErrorString (int err)
 Return readable error string for a network error code. More...
 

Variables

int nConnectTimeout = 20000
 
bool fNameLookup = false
 

Function Documentation

bool ConnectSocket ( const CService addrDest,
SOCKET hSocketRet,
int  nTimeout 
)

Definition at line 541 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ConnectSocketByName ( CService addr,
SOCKET hSocketRet,
const char *  pszDest,
int  portDefault,
int  nTimeout 
)

Definition at line 573 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool GetNameProxy ( CService nameProxyOut)

Definition at line 493 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string GetNetworkName ( enum Network  net)

Definition at line 63 of file netbase.cpp.

bool GetProxy ( enum Network  net,
proxyType proxyInfoOut 
)

Definition at line 476 of file netbase.cpp.

Here is the caller graph for this function:

bool HaveNameProxy ( )

Definition at line 501 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool IsProxy ( const CNetAddr addr)

Definition at line 506 of file netbase.cpp.

Here is the caller graph for this function:

bool Lookup ( const char *  pszName,
std::vector< CService > &  vAddr,
int  portDefault,
bool  fAllowLookup,
unsigned int  nMaxSolutions 
)

Definition at line 225 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Lookup ( const char *  pszName,
CService addr,
int  portDefault,
bool  fAllowLookup 
)

Definition at line 243 of file netbase.cpp.

Here is the call graph for this function:

bool LookupHost ( const char *  pszName,
std::vector< CNetAddr > &  vIP,
unsigned int  nMaxSolutions,
bool  fAllowLookup 
)

Definition at line 207 of file netbase.cpp.

Here is the caller graph for this function:

bool LookupHostNumeric ( const char *  pszName,
std::vector< CNetAddr > &  vIP,
unsigned int  nMaxSolutions 
)

Definition at line 220 of file netbase.cpp.

Here is the call graph for this function:

bool LookupNumeric ( const char *  pszName,
CService addr,
int  portDefault 
)

Definition at line 253 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string NetworkErrorString ( int  err)

Return readable error string for a network error code.

Definition at line 1357 of file netbase.cpp.

Here is the caller graph for this function:

bool operator!= ( const CNetAddr a,
const CNetAddr b 
)

Definition at line 922 of file netbase.cpp.

bool operator!= ( const CService a,
const CService b 
)

Definition at line 1230 of file netbase.cpp.

bool operator< ( const CNetAddr a,
const CNetAddr b 
)

Definition at line 931 of file netbase.cpp.

bool operator< ( const CService a,
const CService b 
)

Definition at line 1239 of file netbase.cpp.

bool operator== ( const CNetAddr a,
const CNetAddr b 
)

Definition at line 913 of file netbase.cpp.

bool operator== ( const CService a,
const CService b 
)

Definition at line 1221 of file netbase.cpp.

enum Network ParseNetwork ( std::string  net)

Definition at line 52 of file netbase.cpp.

Here is the caller graph for this function:

bool SetNameProxy ( CService  addrProxy)

Definition at line 485 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool SetProxy ( enum Network  net,
CService  addrProxy 
)

Definition at line 467 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SplitHostPort ( std::string  in,
int &  portOut,
std::string &  hostOut 
)

Definition at line 77 of file netbase.cpp.

Here is the caller graph for this function:

Variable Documentation

bool fNameLookup = false

Definition at line 48 of file netbase.cpp.

int nConnectTimeout = 20000

Definition at line 47 of file netbase.cpp.