Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Functions | Variables
netbase.h File Reference
#include <compat.h>
#include <netaddress.h>
#include <serialize.h>
#include <stdint.h>
#include <string>
#include <vector>
Include dependency graph for netbase.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  proxyType
 

Functions

enum Network ParseNetwork (std::string net)
 
std::string GetNetworkName (enum Network net)
 
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 LookupHost (const char *pszName, std::vector< CNetAddr > &vIP, unsigned int nMaxSolutions, bool fAllowLookup)
 
bool LookupHost (const char *pszName, CNetAddr &addr, bool fAllowLookup)
 
bool Lookup (const char *pszName, CService &addr, int portDefault, bool fAllowLookup)
 
bool Lookup (const char *pszName, std::vector< CService > &vAddr, int portDefault, bool fAllowLookup, unsigned int nMaxSolutions)
 
CService LookupNumeric (const char *pszName, int portDefault=0)
 
bool LookupSubNet (const char *pszName, CSubNet &subnet)
 
bool ConnectSocket (const CService &addr, SOCKET &hSocketRet, int nTimeout, bool *outProxyConnectionFailed=0)
 
bool ConnectSocketByName (CService &addr, SOCKET &hSocketRet, const char *pszDest, int portDefault, int nTimeout, bool *outProxyConnectionFailed=0)
 
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 (const SOCKET &hSocket, bool fNonBlocking)
 Disable or enable blocking-mode for a socket. More...
 
bool SetSocketNoDelay (const 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
 

Function Documentation

bool CloseSocket ( SOCKET hSocket)

Close socket and set hSocket to INVALID_SOCKET.

Definition at line 732 of file netbase.cpp.

Here is the caller graph for this function:

bool ConnectSocket ( const CService addr,
SOCKET hSocketRet,
int  nTimeout,
bool *  outProxyConnectionFailed = 0 
)

Definition at line 620 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 632 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string GetNetworkName ( enum Network  net)

Definition at line 51 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool GetProxy ( enum Network  net,
proxyType proxyInfoOut 
)

Definition at line 556 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HaveNameProxy ( )

Definition at line 581 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void InterruptSocks5 ( bool  interrupt)

Definition at line 779 of file netbase.cpp.

Here is the caller graph for this function:

bool IsProxy ( const CNetAddr addr)

Definition at line 586 of file netbase.cpp.

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

Definition at line 159 of file netbase.cpp.

Here is the call graph for this function:

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

Definition at line 141 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 118 of file netbase.cpp.

Here is the caller graph for this function:

bool LookupHost ( const char *  pszName,
CNetAddr addr,
bool  fAllowLookup 
)

Definition at line 131 of file netbase.cpp.

Here is the call graph for this function:

CService LookupNumeric ( const char *  pszName,
int  portDefault = 0 
)

Definition at line 169 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool LookupSubNet ( const char *  pszName,
CSubNet subnet 
)

Definition at line 660 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

struct timeval MillisToTimeval ( int64_t  nTimeout)

Convert milliseconds to a struct timeval for e.g.

select.

Definition at line 179 of file netbase.cpp.

Here is the caller graph for this function:

std::string NetworkErrorString ( int  err)

Return readable error string for a network error code.

Definition at line 714 of file netbase.cpp.

Here is the caller graph for this function:

enum Network ParseNetwork ( std::string  net)

Definition at line 43 of file netbase.cpp.

Here is the caller graph for this function:

bool SetNameProxy ( const proxyType addrProxy)

Definition at line 565 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool SetProxy ( enum Network  net,
const proxyType addrProxy 
)

Definition at line 547 of file netbase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool SetSocketNoDelay ( const SOCKET hSocket)

Set the TCP_NODELAY flag on a socket.

Definition at line 772 of file netbase.cpp.

Here is the caller graph for this function:

bool SetSocketNonBlocking ( const SOCKET hSocket,
bool  fNonBlocking 
)

Disable or enable blocking-mode for a socket.

Definition at line 745 of file netbase.cpp.

Here is the caller graph for this function:

Variable Documentation

bool fNameLookup

Definition at line 37 of file netbase.cpp.

int nConnectTimeout

Definition at line 36 of file netbase.cpp.