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 virtual InetAddr *copy() const { return new InetAddr(*this); }
24 virtual SysAddr to_sys() const;
26 virtual Family get_family() const { return INET; }
27 unsigned get_port() const { return port; }
28 virtual std::string str() const;