Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
A CService with information about it as peer. More...
#include <protocol.h>
Public Member Functions | |
CAddress () | |
CAddress (CService ipIn, ServiceFlags nServicesIn) | |
void | Init () |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
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) | |
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 (bool fUseGetnameinfo=true) const |
std::string | ToStringPort () const |
std::string | ToStringIPPort (bool fUseGetnameinfo=true) const |
CService (const struct in6_addr &ipv6Addr, unsigned short port) | |
CService (const struct sockaddr_in6 &addr) | |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
Public Member Functions inherited from CNetAddr | |
CNetAddr () | |
CNetAddr (const struct in_addr &ipv4Addr) | |
void | SetIP (const CNetAddr &ip) |
bool | SetInternal (const std::string &name) |
Transform an arbitrary string into a non-routable ipv6 address. More... | |
bool | SetSpecial (const std::string &strName) |
bool | IsIPv4 () const |
bool | IsIPv6 () const |
bool | IsRFC1918 () const |
bool | IsRFC2544 () const |
bool | IsRFC6598 () const |
bool | IsRFC5737 () 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 | IsInternal () const |
bool | IsValid () const |
enum Network | GetNetwork () const |
std::string | ToString () const |
std::string | ToStringIP (bool fUseGetnameinfo=true) 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=nullptr) const |
Calculates a metric for how reachable (*this) is from a given partner. More... | |
CNetAddr (const struct in6_addr &pipv6Addr, const uint32_t scope=0) | |
bool | GetIn6Addr (struct in6_addr *pipv6Addr) const |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
Public Attributes | |
ADD_SERIALIZE_METHODS | |
ServiceFlags | nServices |
unsigned int | nTime |
Public Attributes inherited from CService | |
ADD_SERIALIZE_METHODS | |
Public Attributes inherited from CNetAddr | |
ADD_SERIALIZE_METHODS | |
Additional Inherited Members | |
Protected Attributes inherited from CService | |
unsigned short | port |
Protected Attributes inherited from CNetAddr | |
unsigned char | ip [16] |
uint32_t | scopeId |
Detailed Description
A CService with information about it as peer.
Definition at line 358 of file protocol.h.
Constructor & Destructor Documentation
◆ CAddress() [1/2]
CAddress::CAddress | ( | ) |
Definition at line 213 of file protocol.cpp.
References Init().
◆ CAddress() [2/2]
|
explicit |
Definition at line 218 of file protocol.cpp.
Member Function Documentation
◆ Init()
void CAddress::Init | ( | ) |
Definition at line 224 of file protocol.cpp.
References NODE_NONE, nServices, and nTime.
Referenced by CAddress(), and SerializationOp().
◆ SerializationOp()
|
inline |
Definition at line 369 of file protocol.h.
References CADDR_TIME_VERSION, Init(), nServices, nTime, READWRITE, SER_DISK, and SER_GETHASH.
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
CAddress::ADD_SERIALIZE_METHODS |
Definition at line 366 of file protocol.h.
◆ nServices
ServiceFlags CAddress::nServices |
Definition at line 387 of file protocol.h.
Referenced by CAddrMan::Add_(), CAddress(), Init(), ProcessMessage(), SerializationOp(), CAddrMan::SetServices_(), and CConnman::ThreadOpenConnections().
◆ nTime
unsigned int CAddress::nTime |
Definition at line 390 of file protocol.h.
Referenced by CAddrMan::Add_(), CAddrMan::Connected_(), CConnman::ConnectNode(), convertSeed6(), GetLocalAddress(), Init(), CAddrInfo::IsTerrible(), ProcessMessage(), SerializationOp(), and CConnman::ThreadDNSAddressSeed().
The documentation for this class was generated from the following files:
- src/protocol.h
- src/protocol.cpp