]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/inet6.h
Add a dynamic receiver class for more flexible packet handling
[libs/net.git] / source / net / inet6.h
index d4455e5de360cb1642b18ba23d9403a9d039b5a8..f6b0cf4187142b32938f828efcbed6c4d3a52ce9 100644 (file)
@@ -1,12 +1,13 @@
 #ifndef MSP_NET_INET6_H_
 #define MSP_NET_INET6_H_
 
+#include "mspnet_api.h"
 #include "sockaddr.h"
 
 namespace Msp {
 namespace Net {
 
-class Inet6Addr: public SockAddr
+class MSPNET_API Inet6Addr: public SockAddr
 {
 private:
        unsigned char addr[16] = { };
@@ -16,6 +17,9 @@ public:
        Inet6Addr() = default;
        Inet6Addr(const SysAddr &);
 
+       static Inet6Addr wildcard(unsigned);
+       static Inet6Addr localhost(unsigned);
+
        Inet6Addr *copy() const override { return new Inet6Addr(*this); }
 
        SysAddr to_sys() const override;