]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/inet6.h
Prepare for assimilating msphttp
[libs/net.git] / source / net / inet6.h
diff --git a/source/net/inet6.h b/source/net/inet6.h
new file mode 100644 (file)
index 0000000..cc33e76
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef MSP_NET_INET6_H_
+#define NSP_NET_INET6_H_
+
+#include "sockaddr.h"
+
+namespace Msp {
+namespace Net {
+
+class Inet6Addr: public SockAddr
+{
+private:
+       unsigned char addr[16];
+       unsigned port;
+
+public:
+       Inet6Addr();
+       Inet6Addr(const SysAddr &);
+
+       virtual Inet6Addr *copy() const { return new Inet6Addr(*this); }
+
+       virtual SysAddr to_sys() const;
+
+       virtual Family get_family() const { return INET6; }
+       unsigned get_port() const { return port; }
+       virtual std::string str() const;
+};
+
+} // namespace Net
+} // namespace Msp
+
+#endif