1 #ifndef MSP_NET_INET_H_
2 #define MSP_NET_INET_H_
10 Address class for IPv4 sockets.
12 class InetAddr: public SockAddr
15 unsigned char addr[4] = { };
20 InetAddr(const SysAddr &);
22 InetAddr *copy() const override { return new InetAddr(*this); }
24 SysAddr to_sys() const override;
26 Family get_family() const override { return INET; }
27 unsigned get_port() const { return port; }
28 std::string str() const override;