![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
#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>
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 |
Definition at line 541 of file netbase.cpp.
bool ConnectSocketByName | ( | CService & | addr, |
SOCKET & | hSocketRet, | ||
const char * | pszDest, | ||
int | portDefault, | ||
int | nTimeout | ||
) |
Definition at line 573 of file netbase.cpp.
bool GetNameProxy | ( | CService & | nameProxyOut | ) |
Definition at line 493 of file netbase.cpp.
std::string GetNetworkName | ( | enum Network | net | ) |
Definition at line 63 of file netbase.cpp.
bool HaveNameProxy | ( | ) |
Definition at line 501 of file netbase.cpp.
bool IsProxy | ( | const CNetAddr & | addr | ) |
bool Lookup | ( | const char * | pszName, |
std::vector< CService > & | vAddr, | ||
int | portDefault, | ||
bool | fAllowLookup, | ||
unsigned int | nMaxSolutions | ||
) |
Definition at line 225 of file netbase.cpp.
bool Lookup | ( | const char * | pszName, |
CService & | addr, | ||
int | portDefault, | ||
bool | fAllowLookup | ||
) |
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 LookupNumeric | ( | const char * | pszName, |
CService & | addr, | ||
int | portDefault | ||
) |
Definition at line 253 of file netbase.cpp.
std::string NetworkErrorString | ( | int | err | ) |
Return readable error string for a network error code.
Definition at line 1357 of file netbase.cpp.
Definition at line 922 of file netbase.cpp.
Definition at line 1230 of file netbase.cpp.
Definition at line 931 of file netbase.cpp.
Definition at line 1239 of file netbase.cpp.
Definition at line 913 of file netbase.cpp.
Definition at line 1221 of file netbase.cpp.
enum Network ParseNetwork | ( | std::string | net | ) |
bool SetNameProxy | ( | CService | addrProxy | ) |
Definition at line 485 of file netbase.cpp.
Definition at line 467 of file netbase.cpp.
void SplitHostPort | ( | std::string | in, |
int & | portOut, | ||
std::string & | hostOut | ||
) |
bool fNameLookup = false |
Definition at line 48 of file netbase.cpp.
int nConnectTimeout = 20000 |
Definition at line 47 of file netbase.cpp.