]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/inet6.h
Include the matching header first in .cpp files
[libs/net.git] / source / net / inet6.h
index fb07eec52e2d2ff14dcaa551fff7eef38468a840..d4455e5de360cb1642b18ba23d9403a9d039b5a8 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef MSP_NET_INET6_H_
-#define NSP_NET_INET6_H_
+#define MSP_NET_INET6_H_
 
 #include "sockaddr.h"
 
@@ -9,11 +9,11 @@ namespace Net {
 class Inet6Addr: public SockAddr
 {
 private:
-       unsigned char addr[16];
-       unsigned port;
+       unsigned char addr[16] = { };
+       unsigned port = 0;
 
 public:
-       Inet6Addr();
+       Inet6Addr() = default;
        Inet6Addr(const SysAddr &);
 
        Inet6Addr *copy() const override { return new Inet6Addr(*this); }