Changeset View
Changeset View
Standalone View
Standalone View
src/netbase.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
bool Lookup(const char *pszName, CService &addr, int portDefault, | bool Lookup(const char *pszName, CService &addr, int portDefault, | ||||
bool fAllowLookup); | bool fAllowLookup); | ||||
bool Lookup(const char *pszName, std::vector<CService> &vAddr, int portDefault, | bool Lookup(const char *pszName, std::vector<CService> &vAddr, int portDefault, | ||||
bool fAllowLookup, unsigned int nMaxSolutions); | bool fAllowLookup, unsigned int nMaxSolutions); | ||||
CService LookupNumeric(const char *pszName, int portDefault = 0); | CService LookupNumeric(const char *pszName, int portDefault = 0); | ||||
bool LookupSubNet(const char *pszName, CSubNet &subnet); | bool LookupSubNet(const char *pszName, CSubNet &subnet); | ||||
SOCKET CreateSocket(const CService &addrConnect); | SOCKET CreateSocket(const CService &addrConnect); | ||||
bool ConnectSocketDirectly(const CService &addrConnect, | bool ConnectSocketDirectly(const CService &addrConnect, | ||||
const SOCKET &hSocketRet, int nTimeout); | const SOCKET &hSocketRet, int nTimeout, | ||||
bool manual_connection); | |||||
bool ConnectThroughProxy(const proxyType &proxy, const std::string &strDest, | bool ConnectThroughProxy(const proxyType &proxy, const std::string &strDest, | ||||
int port, const SOCKET &hSocketRet, int nTimeout, | int port, const SOCKET &hSocketRet, int nTimeout, | ||||
bool *outProxyConnectionFailed); | bool *outProxyConnectionFailed); | ||||
/** Return readable error string for a network error code */ | /** Return readable error string for a network error code */ | ||||
std::string NetworkErrorString(int err); | std::string NetworkErrorString(int err); | ||||
/** Close socket and set hSocket to INVALID_SOCKET */ | /** Close socket and set hSocket to INVALID_SOCKET */ | ||||
bool CloseSocket(SOCKET &hSocket); | bool CloseSocket(SOCKET &hSocket); | ||||
/** Disable or enable blocking-mode for a socket */ | /** Disable or enable blocking-mode for a socket */ | ||||
Show All 10 Lines |