1 #ifndef MSP_NET_INET6_H_
2 #define MSP_NET_INET6_H_
4 #include "mspnet_api.h"
10 class MSPNET_API Inet6Addr: public SockAddr
13 unsigned char addr[16] = { };
17 Inet6Addr() = default;
18 Inet6Addr(const SysAddr &);
20 static Inet6Addr wildcard(unsigned);
21 static Inet6Addr localhost(unsigned);
23 Inet6Addr *copy() const override { return new Inet6Addr(*this); }
25 SysAddr to_sys() const override;
27 Family get_family() const override { return INET6; }
28 unsigned get_port() const { return port; }
29 std::string str() const override;