![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
#include "net.h"
#include "addrman.h"
#include "clientversion.h"
#include "chainparams.h"
#include "core.h"
#include "ui_interface.h"
#include <fcntl.h>
#include <boost/filesystem.hpp>
Go to the source code of this file.
Classes | |
class | CNetCleanup |
Macros | |
#define | DUMP_ADDRESSES_INTERVAL 900 |
#define | X(name) stats.name = name |
Functions | |
bool | OpenNetworkConnection (const CAddress &addrConnect, CSemaphoreGrant *grantOutbound=NULL, const char *strDest=NULL, bool fOneShot=false) |
CNodeSignals & | GetNodeSignals () |
void | AddOneShot (string strDest) |
unsigned short | GetListenPort () |
bool | GetLocal (CService &addr, const CNetAddr *paddrPeer) |
CAddress | GetLocalAddress (const CNetAddr *paddrPeer) |
bool | RecvLine (SOCKET hSocket, string &strLine) |
void | SetReachable (enum Network net, bool fFlag) |
bool | AddLocal (const CService &addr, int nScore) |
bool | AddLocal (const CNetAddr &addr, int nScore) |
void | SetLimited (enum Network net, bool fLimited) |
Make a particular network entirely off-limits (no automatic connects to it) More... | |
bool | IsLimited (enum Network net) |
bool | IsLimited (const CNetAddr &addr) |
bool | SeenLocal (const CService &addr) |
vote for a local address More... | |
bool | IsLocal (const CService &addr) |
check whether a given address is potentially local More... | |
bool | IsReachable (enum Network net) |
check whether a given network is one we can probably connect to More... | |
bool | IsReachable (const CNetAddr &addr) |
check whether a given address is in a network we can probably connect to More... | |
bool | GetMyExternalIP2 (const CService &addrConnect, const char *pszGet, const char *pszKeyword, CNetAddr &ipRet) |
bool | GetMyExternalIP (CNetAddr &ipRet) |
void | ThreadGetMyExternalIP () |
void | AddressCurrentlyConnected (const CService &addr) |
CNode * | FindNode (const CNetAddr &ip) |
CNode * | FindNode (std::string addrName) |
CNode * | FindNode (const CService &addr) |
CNode * | ConnectNode (CAddress addrConnect, const char *pszDest) |
void | SocketSendData (CNode *pnode) |
void | ThreadSocketHandler () |
Main Thread that handling socket's & their housekeeping... More... | |
void | MapPort (bool) |
void | ThreadDNSAddressSeed () |
Process DNS seed data from chainparams. More... | |
void | DumpAddresses () |
void | ThreadOpenConnections () |
void | ThreadOpenAddedConnections () |
void | ThreadMessageHandler () |
bool | BindListenPort (const CService &addrBind, string &strError) |
void | StartNode (boost::thread_group &threadGroup) |
bool | StopNode () |
void | RelayTransaction (const CTransaction &tx, const uint256 &hash) |
void | RelayTransaction (const CTransaction &tx, const uint256 &hash, const CDataStream &ss) |
Variables | |
bool | fDiscover = true |
Specific functions we need to implement I2P functionality. More... | |
CCriticalSection | cs_mapLocalHost |
map< CNetAddr, LocalServiceInfo > | mapLocalHost |
uint64_t | nLocalHostNonce = 0 |
CAddrMan | addrman |
int | nMaxConnections = 125 |
bool | fAddressesInitialized = false |
uint64_t | nLocalServices = NODE_NETWORK | NODE_BLOOM |
vector< CNode * > | vNodes |
CCriticalSection | cs_vNodes |
map< CInv, CDataStream > | mapRelay |
deque< pair< int64_t, CInv > > | vRelayExpiration |
CCriticalSection | cs_mapRelay |
limitedmap< CInv, int64_t > | mapAlreadyAskedFor (MAX_INV_SZ) |
CCriticalSection | cs_vOneShots |
set< CNetAddr > | setservAddNodeAddresses |
CCriticalSection | cs_setservAddNodeAddresses |
vector< std::string > | vAddedNodes |
CCriticalSection | cs_vAddedNodes |
NodeId | nLastNodeId = 0 |
CCriticalSection | cs_nLastNodeId |
class CNetCleanup | instance_of_cnetcleanup |
bool AddLocal | ( | const CService & | addr, |
int | nScore | ||
) |
bool AddLocal | ( | const CNetAddr & | addr, |
int | nScore | ||
) |
void AddOneShot | ( | string | strDest | ) |
void AddressCurrentlyConnected | ( | const CService & | addr | ) |
bool BindListenPort | ( | const CService & | addrBind, |
string & | strError | ||
) |
void DumpAddresses | ( | ) |
unsigned short GetListenPort | ( | ) |
bool GetMyExternalIP | ( | CNetAddr & | ipRet | ) |
CNodeSignals& GetNodeSignals | ( | ) |
bool IsLimited | ( | enum Network | net | ) |
bool IsLimited | ( | const CNetAddr & | addr | ) |
bool IsLocal | ( | const CService & | addr | ) |
bool IsReachable | ( | enum Network | net | ) |
bool IsReachable | ( | const CNetAddr & | addr | ) |
void MapPort | ( | bool | ) |
bool OpenNetworkConnection | ( | const CAddress & | addrConnect, |
CSemaphoreGrant * | grantOutbound = NULL , |
||
const char * | strDest = NULL , |
||
bool | fOneShot = false |
||
) |
bool RecvLine | ( | SOCKET | hSocket, |
string & | strLine | ||
) |
void RelayTransaction | ( | const CTransaction & | tx, |
const uint256 & | hash | ||
) |
void RelayTransaction | ( | const CTransaction & | tx, |
const uint256 & | hash, | ||
const CDataStream & | ss | ||
) |
bool SeenLocal | ( | const CService & | addr | ) |
void SetLimited | ( | enum Network | net, |
bool | fLimited | ||
) |
void SetReachable | ( | enum Network | net, |
bool | fFlag | ||
) |
void SocketSendData | ( | CNode * | pnode | ) |
void StartNode | ( | boost::thread_group & | threadGroup | ) |
bool StopNode | ( | ) |
void ThreadDNSAddressSeed | ( | ) |
void ThreadGetMyExternalIP | ( | ) |
void ThreadMessageHandler | ( | ) |
void ThreadOpenAddedConnections | ( | ) |
void ThreadOpenConnections | ( | ) |
void ThreadSocketHandler | ( | ) |
CCriticalSection cs_mapLocalHost |
CCriticalSection cs_mapRelay |
CCriticalSection cs_nLastNodeId |
CCriticalSection cs_setservAddNodeAddresses |
CCriticalSection cs_vAddedNodes |
CCriticalSection cs_vNodes |
CCriticalSection cs_vOneShots |
bool fDiscover = true |
class CNetCleanup instance_of_cnetcleanup |
limitedmap<CInv, int64_t> mapAlreadyAskedFor(MAX_INV_SZ) |
map<CNetAddr, LocalServiceInfo> mapLocalHost |
map<CInv, CDataStream> mapRelay |
uint64_t nLocalServices = NODE_NETWORK | NODE_BLOOM |