1 #ifndef MSP_NET_SOCKADDR_H_
2 #define MSP_NET_SOCKADDR_H_
25 SockAddr(const SockAddr &) = default;
26 SockAddr(SockAddr &&) = default;
27 SockAddr &operator=(const SockAddr &) = default;
28 SockAddr &operator=(SockAddr &&) = default;
30 virtual ~SockAddr() = default;
32 virtual SockAddr *copy() const = 0;
34 static SockAddr *new_from_sys(const SysAddr &);
35 virtual SysAddr to_sys() const = 0;
37 virtual Family get_family() const = 0;
38 virtual std::string str() const = 0;