#include "compat.h"
#include "serialize.h"
#include <stdint.h>
#include <string>
#include <vector>
Go to the source code of this file.
|
enum Network | ParseNetwork (std::string net) |
|
std::string | GetNetworkName (enum Network net) |
|
void | SplitHostPort (std::string in, int &portOut, std::string &hostOut) |
|
bool | SetProxy (enum Network net, CService addrProxy) |
|
bool | GetProxy (enum Network net, proxyType &proxyInfoOut) |
|
bool | IsProxy (const CNetAddr &addr) |
|
bool | SetNameProxy (CService addrProxy) |
|
bool | HaveNameProxy () |
|
bool | LookupHost (const char *pszName, std::vector< CNetAddr > &vIP, unsigned int nMaxSolutions=0, bool fAllowLookup=true) |
|
bool | LookupHostNumeric (const char *pszName, std::vector< CNetAddr > &vIP, unsigned int nMaxSolutions=0) |
|
bool | Lookup (const char *pszName, CService &addr, int portDefault=0, bool fAllowLookup=true) |
|
bool | Lookup (const char *pszName, std::vector< CService > &vAddr, int portDefault=0, bool fAllowLookup=true, unsigned int nMaxSolutions=0) |
|
bool | LookupNumeric (const char *pszName, CService &addr, int portDefault=0) |
|
bool | ConnectSocket (const CService &addr, SOCKET &hSocketRet, int nTimeout=nConnectTimeout) |
|
bool | ConnectSocketByName (CService &addr, SOCKET &hSocketRet, const char *pszDest, int portDefault=0, int nTimeout=nConnectTimeout) |
|
std::string | NetworkErrorString (int err) |
| Return readable error string for a network error code. More...
|
|
Enumerator |
---|
NET_UNROUTABLE |
|
NET_IPV4 |
|
NET_IPV6 |
|
NET_TOR |
|
NET_MAX |
|
Definition at line 29 of file netbase.h.
std::string GetNetworkName |
( |
enum Network |
net | ) |
|
bool Lookup |
( |
const char * |
pszName, |
|
|
CService & |
addr, |
|
|
int |
portDefault = 0 , |
|
|
bool |
fAllowLookup = true |
|
) |
| |
bool Lookup |
( |
const char * |
pszName, |
|
|
std::vector< CService > & |
vAddr, |
|
|
int |
portDefault = 0 , |
|
|
bool |
fAllowLookup = true , |
|
|
unsigned int |
nMaxSolutions = 0 |
|
) |
| |
bool LookupHost |
( |
const char * |
pszName, |
|
|
std::vector< CNetAddr > & |
vIP, |
|
|
unsigned int |
nMaxSolutions = 0 , |
|
|
bool |
fAllowLookup = true |
|
) |
| |
bool LookupHostNumeric |
( |
const char * |
pszName, |
|
|
std::vector< CNetAddr > & |
vIP, |
|
|
unsigned int |
nMaxSolutions = 0 |
|
) |
| |
bool LookupNumeric |
( |
const char * |
pszName, |
|
|
CService & |
addr, |
|
|
int |
portDefault = 0 |
|
) |
| |
std::string NetworkErrorString |
( |
int |
err | ) |
|
Return readable error string for a network error code.
Definition at line 1357 of file netbase.cpp.
enum Network ParseNetwork |
( |
std::string |
net | ) |
|
void SplitHostPort |
( |
std::string |
in, |
|
|
int & |
portOut, |
|
|
std::string & |
hostOut |
|
) |
| |