![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#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, int nType, int nVersion) |
![]() | |
CService () | |
CService (const CNetAddr &ip, unsigned short port) | |
CService (const struct in_addr &ipv4Addr, unsigned short port) | |
CService (const struct sockaddr_in &addr) | |
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 (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, int nType, int nVersion) |
![]() | |
CNetAddr () | |
CNetAddr (const struct in_addr &ipv4Addr) | |
void | Init () |
void | SetIP (const CNetAddr &ip) |
void | SetRaw (Network network, const uint8_t *data) |
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 | IsValid () const |
bool | IsMulticast () 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=NULL) const |
CNetAddr (const struct in6_addr &pipv6Addr) | |
bool | GetIn6Addr (struct in6_addr *pipv6Addr) const |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion) |
Public Attributes | |
ADD_SERIALIZE_METHODS | |
ServiceFlags | nServices |
unsigned int | nTime |
![]() | |
ADD_SERIALIZE_METHODS | |
![]() | |
ADD_SERIALIZE_METHODS | |
Additional Inherited Members | |
![]() | |
unsigned short | port |
![]() | |
unsigned char | ip [16] |
A CService with information about it as peer
Definition at line 279 of file protocol.h.
CAddress::CAddress | ( | ) |
Definition at line 204 of file protocol.cpp.
|
explicit |
Definition at line 209 of file protocol.cpp.
void CAddress::Init | ( | ) |
Definition at line 215 of file protocol.cpp.
Referenced by CAddress(), and SerializationOp().
|
inline |
Definition at line 290 of file protocol.h.
CAddress::ADD_SERIALIZE_METHODS |
Definition at line 287 of file protocol.h.
ServiceFlags CAddress::nServices |
Definition at line 307 of file protocol.h.
Referenced by CAddrMan::Add_(), CAddress(), CConnman::ConnectNode(), Init(), ProcessMessage(), SerializationOp(), CAddrMan::SetServices_(), and CConnman::ThreadOpenConnections().
unsigned int CAddress::nTime |
Definition at line 310 of file protocol.h.
Referenced by CAddrMan::Add_(), CAddrMan::Connected_(), CConnman::ConnectNode(), convertSeed6(), CAddrInfo::GetChance(), GetLocalAddress(), Init(), CAddrInfo::IsTerrible(), ProcessMessage(), SerializationOp(), and CConnman::ThreadDNSAddressSeed().