]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/inet.cpp
Include the matching header first in .cpp files
[libs/net.git] / source / net / inet.cpp
index c78ea6165cd9d4e77d535172b1d2e4b6cb0a10de..f44b1c0b08f0184ed3774e4da25018934b42bdea 100644 (file)
@@ -1,10 +1,6 @@
-#ifdef WIN32
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#endif
-#include <msp/strings/format.h>
+#include "platform_api.h"
 #include "inet.h"
+#include <msp/strings/format.h>
 #include "sockaddr_private.h"
 
 using namespace std;
@@ -12,12 +8,6 @@ using namespace std;
 namespace Msp {
 namespace Net {
 
-InetAddr::InetAddr():
-       port(0)
-{
-       fill(addr, addr+4, 0);
-}
-
 InetAddr::InetAddr(const SysAddr &sa)
 {
        const sockaddr_in &sai = reinterpret_cast<const sockaddr_in &>(sa.addr);