--- /dev/null
+#ifndef MSP_NET_INET_H_
+#define MSP_NET_INET_H_
+
+#include "sockaddr.h"
+
+namespace Msp {
+namespace Net {
+
+/**
+Address class for IPv4 sockets.
+*/
+class InetAddr: public SockAddr
+{
+private:
+ unsigned char addr[4];
+ unsigned port;
+
+public:
+ InetAddr();
+ InetAddr(const SysAddr &);
+
+ virtual InetAddr *copy() const { return new InetAddr(*this); }
+
+ virtual SysAddr to_sys() const;
+
+ virtual Family get_family() const { return INET; }
+ unsigned get_port() const { return port; }
+ virtual std::string str() const;
+};
+
+} // namespace Net
+} // namespace Msp
+
+#endif