![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
A CService with information about it as peer. More...
#include <protocol.h>
Inheritance diagram for CAddress:
Collaboration diagram for CAddress:Public Member Functions | |
| CAddress () | |
| CAddress (CService ipIn, uint64_t nServicesIn=NODE_NETWORK) | |
| void | Init () |
| IMPLEMENT_SERIALIZE (CAddress *pthis=const_cast< CAddress * >(this);CService *pip=(CService *) pthis;if(fRead) pthis->Init();if(nType &SER_DISK) READWRITE(nVersion);if((nType &SER_DISK)||(nVersion >=CADDR_TIME_VERSION &&!(nType &SER_GETHASH))) READWRITE(nTime);READWRITE(nServices);READWRITE(*pip);) void print() const | |
Public Member Functions inherited from CService | |
| CService () | |
| CService (const CNetAddr &ip, unsigned short port) | |
| CService (const struct in_addr &ipv4Addr, unsigned short port) | |
| CService (const struct sockaddr_in &addr) | |
| CService (const char *pszIpPort, int portDefault, bool fAllowLookup=false) | |
| CService (const char *pszIpPort, bool fAllowLookup=false) | |
| CService (const std::string &strIpPort, int portDefault, bool fAllowLookup=false) | |
| CService (const std::string &strIpPort, bool fAllowLookup=false) | |
| void | Init () |
| void | SetPort (unsigned short portIn) |
| unsigned short | GetPort () const |
| bool | GetSockAddr (struct sockaddr *paddr, socklen_t *addrlen) const |
| bool | SetSockAddr (const struct sockaddr *paddr) |
| std::vector< unsigned char > | GetKey () const |
| std::string | ToString () const |
| std::string | ToStringPort () const |
| std::string | ToStringIPPort () const |
| void | print () const |
| CService (const struct in6_addr &ipv6Addr, unsigned short port) | |
| CService (const struct sockaddr_in6 &addr) | |
Public Member Functions inherited from CNetAddr | |
| CNetAddr () | |
| CNetAddr (const struct in_addr &ipv4Addr) | |
| CNetAddr (const char *pszIp, bool fAllowLookup=false) | |
| CNetAddr (const std::string &strIp, bool fAllowLookup=false) | |
| void | Init () |
| void | SetIP (const CNetAddr &ip) |
| bool | SetSpecial (const std::string &strName) |
| bool | IsIPv4 () const |
| bool | IsIPv6 () const |
| bool | IsRFC1918 () const |
| bool | IsRFC3849 () const |
| bool | IsRFC3927 () const |
| bool | IsRFC3964 () const |
| bool | IsRFC4193 () const |
| bool | IsRFC4380 () const |
| bool | IsRFC4843 () const |
| bool | IsRFC4862 () const |
| bool | IsRFC6052 () const |
| bool | IsRFC6145 () const |
| bool | IsTor () const |
| bool | IsLocal () const |
| bool | IsRoutable () const |
| bool | IsValid () const |
| bool | IsMulticast () const |
| enum Network | GetNetwork () const |
| std::string | ToString () const |
| std::string | ToStringIP () const |
| unsigned int | GetByte (int n) const |
| uint64_t | GetHash () const |
| bool | GetInAddr (struct in_addr *pipv4Addr) const |
| std::vector< unsigned char > | GetGroup () const |
| int | GetReachabilityFrom (const CNetAddr *paddrPartner=NULL) const |
| Calculates a metric for how reachable (*this) is from a given partner. More... | |
| void | print () const |
| CNetAddr (const struct in6_addr &pipv6Addr) | |
| bool | GetIn6Addr (struct in6_addr *pipv6Addr) const |
Public Attributes | |
| uint64_t | nServices |
| unsigned int | nTime |
| int64_t | nLastTry |
Additional Inherited Members | |
Protected Attributes inherited from CService | |
| unsigned short | port |
Protected Attributes inherited from CNetAddr | |
| unsigned char | ip [16] |
A CService with information about it as peer.
Definition at line 68 of file protocol.h.
| CAddress::CAddress | ( | ) |
Definition at line 79 of file protocol.cpp.
References Init().
Here is the call graph for this function:
|
explicit |
Definition at line 84 of file protocol.cpp.
References Init(), and nServices.
Here is the call graph for this function:| CAddress::IMPLEMENT_SERIALIZE | ( | CAddress * | pthis = const_cast< CAddress * >(this);CService *pip=(CService *) pthis;if(fRead) pthis->Init();if(nType &SER_DISK) READWRITE(nVersion);if((nType &SER_DISK)||(nVersion >=CADDR_TIME_VERSION &&!(nType &SER_GETHASH))) READWRITE(nTime);READWRITE(nServices);READWRITE(*pip); | ) | const |
| void CAddress::Init | ( | ) |
Definition at line 90 of file protocol.cpp.
References nLastTry, NODE_NETWORK, nServices, and nTime.
Referenced by CAddress(), and CAddrInfo::CAddrInfo().
Here is the caller graph for this function:| int64_t CAddress::nLastTry |
Definition at line 101 of file protocol.h.
Referenced by CAddrMan::Attempt_(), CAddrMan::Good_(), Init(), and ThreadOpenConnections().
| uint64_t CAddress::nServices |
Definition at line 95 of file protocol.h.
Referenced by CAddrMan::Add_(), CAddress(), GetLocalAddress(), and Init().
| unsigned int CAddress::nTime |
Definition at line 98 of file protocol.h.
Referenced by CAddrMan::Add_(), CMainParams::CMainParams(), CAddrMan::Connected_(), ConnectNode(), GetLocalAddress(), CAddrMan::Good_(), Init(), ProcessMessage(), and ThreadDNSAddressSeed().
1.8.8