Changeset View
Changeset View
Standalone View
Standalone View
src/netaddress.h
| Show First 20 Lines • Show All 563 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, uint16_t port); | CService(const struct in6_addr &ipv6Addr, uint16_t port); | ||||
| explicit CService(const struct sockaddr_in6 &addr); | explicit CService(const struct sockaddr_in6 &addr); | ||||
| SERIALIZE_METHODS(CService, obj) { | SERIALIZE_METHODS(CService, obj) { | ||||
| READWRITEAS(CNetAddr, obj); | READWRITE(AsBase<CNetAddr>(obj), | ||||
| READWRITE(Using<BigEndianFormatter<2>>(obj.port)); | Using<BigEndianFormatter<2>>(obj.port)); | ||||
| } | } | ||||
| friend class CServiceHash; | friend class CServiceHash; | ||||
| }; | }; | ||||
| class CServiceHash { | class CServiceHash { | ||||
| public: | public: | ||||
| CServiceHash() | CServiceHash() | ||||
| Show All 20 Lines | |||||