![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include "compat.h"#include "netaddress.h"#include "serialize.h"#include <stdint.h>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| class | proxyType |
Functions | |
| 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, const proxyType &addrProxy) |
| bool | GetProxy (enum Network net, proxyType &proxyInfoOut) |
| bool | IsProxy (const CNetAddr &addr) |
| bool | SetNameProxy (const proxyType &addrProxy) |
| bool | HaveNameProxy () |
| bool | GetNameProxy (proxyType &nameProxyOut) |
| bool | LookupHost (const std::string &name, std::vector< CNetAddr > &vIP, unsigned int nMaxSolutions, bool fAllowLookup) |
| bool | LookupHost (const std::string &name, CNetAddr &addr, bool fAllowLookup) |
| bool | Lookup (const std::string &name, CService &addr, int portDefault, bool fAllowLookup) |
| bool | Lookup (const std::string &name, std::vector< CService > &vAddr, int portDefault, bool fAllowLookup, unsigned int nMaxSolutions) |
| CService | LookupNumeric (const std::string &name, int portDefault=0) |
| bool | LookupSubNet (const std::string &name, CSubNet &subnet) |
| SOCKET | CreateSocket (const CService &addrConnect) |
| bool | ConnectSocketDirectly (const CService &addrConnect, const SOCKET &hSocketRet, int nTimeout, bool manual_connection) |
| bool | ConnectThroughProxy (const proxyType &proxy, const std::string &strDest, int port, const SOCKET &hSocketRet, int nTimeout, bool *outProxyConnectionFailed) |
| std::string | NetworkErrorString (int err) |
| Return readable error string for a network error code. More... | |
| bool | CloseSocket (SOCKET &hSocket) |
| Close socket and set hSocket to INVALID_SOCKET. More... | |
| bool | SetSocketNonBlocking (SOCKET &hSocket, bool fNonBlocking) |
| Disable or enable blocking-mode for a socket. More... | |
| bool | SetSocketNoDelay (SOCKET &hSocket) |
| Set the TCP_NODELAY flag on a socket. More... | |
| struct timeval | MillisToTimeval (int64_t nTimeout) |
| Convert milliseconds to a struct timeval for e.g. More... | |
| void | InterruptSocks5 (bool interrupt) |
Variables | |
| int | nConnectTimeout |
| bool | fNameLookup |
| bool CloseSocket | ( | SOCKET & | hSocket | ) |
Close socket and set hSocket to INVALID_SOCKET.
Definition at line 742 of file netbase.cpp.
| bool GetNameProxy | ( | proxyType & | nameProxyOut | ) |
Definition at line 624 of file netbase.cpp.
| std::string GetNetworkName | ( | enum Network | net | ) |
Definition at line 55 of file netbase.cpp.
| bool HaveNameProxy | ( | ) |
Definition at line 633 of file netbase.cpp.
| void InterruptSocks5 | ( | bool | interrupt | ) |
| bool IsProxy | ( | const CNetAddr & | addr | ) |
Definition at line 639 of file netbase.cpp.
| bool Lookup | ( | const std::string & | name, |
| CService & | addr, | ||
| int | portDefault, | ||
| bool | fAllowLookup | ||
| ) |
| bool Lookup | ( | const std::string & | name, |
| std::vector< CService > & | vAddr, | ||
| int | portDefault, | ||
| bool | fAllowLookup, | ||
| unsigned int | nMaxSolutions | ||
| ) |
Definition at line 177 of file netbase.cpp.
| bool LookupHost | ( | const std::string & | name, |
| CNetAddr & | addr, | ||
| bool | fAllowLookup | ||
| ) |
| bool LookupHost | ( | const std::string & | name, |
| std::vector< CNetAddr > & | vIP, | ||
| unsigned int | nMaxSolutions, | ||
| bool | fAllowLookup | ||
| ) |
Definition at line 149 of file netbase.cpp.
| CService LookupNumeric | ( | const std::string & | name, |
| int | portDefault = 0 |
||
| ) |
Definition at line 209 of file netbase.cpp.
| bool LookupSubNet | ( | const std::string & | name, |
| CSubNet & | subnet | ||
| ) |
Definition at line 673 of file netbase.cpp.
| struct timeval MillisToTimeval | ( | int64_t | nTimeout | ) |
Convert milliseconds to a struct timeval for e.g.
select.
Definition at line 209 of file netbase.cpp.
| std::string NetworkErrorString | ( | int | err | ) |
Return readable error string for a network error code.
Definition at line 724 of file netbase.cpp.
| enum Network ParseNetwork | ( | std::string | net | ) |
| bool SetNameProxy | ( | const proxyType & | addrProxy | ) |
Definition at line 595 of file netbase.cpp.
| bool SetSocketNoDelay | ( | SOCKET & | hSocket | ) |
Set the TCP_NODELAY flag on a socket.
Definition at line 784 of file netbase.cpp.
| bool SetSocketNonBlocking | ( | SOCKET & | hSocket, |
| bool | fNonBlocking | ||
| ) |
Disable or enable blocking-mode for a socket.
Definition at line 755 of file netbase.cpp.
| void SplitHostPort | ( | std::string | in, |
| int & | portOut, | ||
| std::string & | hostOut | ||
| ) |
Definition at line 71 of file netbase.cpp.
|
extern |
Definition at line 40 of file netbase.cpp.
|
extern |
Definition at line 39 of file netbase.cpp.