Changeset View
Changeset View
Standalone View
Standalone View
src/netaddress.h
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | public: | ||||
std::string ToString() const; | std::string ToString() const; | ||||
std::string ToStringPort() const; | std::string ToStringPort() const; | ||||
std::string ToStringIPPort() const; | std::string ToStringIPPort() const; | ||||
CService(const struct in6_addr &ipv6Addr, unsigned short port); | CService(const struct in6_addr &ipv6Addr, unsigned short port); | ||||
explicit CService(const struct sockaddr_in6 &addr); | explicit CService(const struct sockaddr_in6 &addr); | ||||
SERIALIZE_METHODS(CService, obj) { | SERIALIZE_METHODS(CService, obj) { | ||||
READWRITE(obj.ip, Using<BigEndianFormatter<2>>(obj.port)); | READWRITEAS(CNetAddr, obj); | ||||
READWRITE(Using<BigEndianFormatter<2>>(obj.port)); | |||||
} | } | ||||
}; | }; | ||||
bool SanityCheckASMap(const std::vector<bool> &asmap); | bool SanityCheckASMap(const std::vector<bool> &asmap); | ||||
#endif // BITCOIN_NETADDRESS_H | #endif // BITCOIN_NETADDRESS_H |