Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Functions | Variables
netbase.cpp File Reference
#include "netbase.h"
#include "util.h"
#include "sync.h"
#include "hash.h"
#include <sys/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)
 
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, int nSocksVersion)
 
bool GetProxy (enum Network net, proxyType &proxyInfoOut)
 
bool SetNameProxy (CService addrProxy, int nSocksVersion)
 
bool GetNameProxy (proxyType &nameproxyInfoOut)
 
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)
 

Variables

int nConnectTimeout = 5000
 
bool fNameLookup = false
 

Function Documentation

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

Definition at line 473 of file netbase.cpp.

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

Definition at line 505 of file netbase.cpp.

bool GetNameProxy ( proxyType nameproxyInfoOut)

Definition at line 451 of file netbase.cpp.

bool GetProxy ( enum Network  net,
proxyType proxyInfoOut 
)

Definition at line 432 of file netbase.cpp.

bool HaveNameProxy ( )

Definition at line 459 of file netbase.cpp.

bool IsProxy ( const CNetAddr addr)

Definition at line 464 of file netbase.cpp.

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

Definition at line 133 of file netbase.cpp.

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

Definition at line 151 of file netbase.cpp.

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

Definition at line 115 of file netbase.cpp.

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

Definition at line 128 of file netbase.cpp.

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

Definition at line 161 of file netbase.cpp.

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

Definition at line 787 of file netbase.cpp.

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

Definition at line 1061 of file netbase.cpp.

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

Definition at line 792 of file netbase.cpp.

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

Definition at line 1066 of file netbase.cpp.

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

Definition at line 782 of file netbase.cpp.

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

Definition at line 1056 of file netbase.cpp.

enum Network ParseNetwork ( std::string  net)

Definition at line 29 of file netbase.cpp.

bool SetNameProxy ( CService  addrProxy,
int  nSocksVersion 
)

Definition at line 441 of file netbase.cpp.

bool SetProxy ( enum Network  net,
CService  addrProxy,
int  nSocksVersion 
)

Definition at line 421 of file netbase.cpp.

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

Definition at line 37 of file netbase.cpp.

Variable Documentation

bool fNameLookup = false

Definition at line 25 of file netbase.cpp.

int nConnectTimeout = 5000

Definition at line 24 of file netbase.cpp.