1 #ifndef MSP_NET_INET6_H_
2 #define NSP_NET_INET6_H_
9 class Inet6Addr: public SockAddr
12 unsigned char addr[16] = { };
16 Inet6Addr() = default;
17 Inet6Addr(const SysAddr &);
19 Inet6Addr *copy() const override { return new Inet6Addr(*this); }
21 SysAddr to_sys() const override;
23 Family get_family() const override { return INET6; }
24 unsigned get_port() const { return port; }
25 std::string str() const override;