]> git.tdb.fi Git - libs/net.git/blobdiff - source/inet.h
Drop Id tags and copyright notices
[libs/net.git] / source / inet.h
index 56b9f4d06a91092baf6d2b26d3d849a2e051a2a3..f22d6a1a1d565d2be30adccf1a55ae2efb250ba6 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspnet
-Copyright © 2008  Mikkosoft Productions, Mikko Rasa
-Distributed under the LGPL
-*/
-
 #ifndef MSP_NET_INET_H_
 #define MSP_NET_INET_H_
 
@@ -13,29 +6,28 @@ Distributed under the LGPL
 #else
 #include <netinet/in.h>
 #endif
-#include <string>
 #include "sockaddr.h"
 
 namespace Msp {
 namespace Net {
 
-#ifdef WIN32
-typedef u_long in_addr_t;
-typedef u_short in_port_t;
-#endif
-
 /**
 Address class for IPv4 sockets.
 */
 class InetAddr: public SockAddr
 {
 private:
+#ifdef WIN32
+       typedef u_long in_addr_t;
+       typedef u_short in_port_t;
+#endif
+
        in_addr_t   addr;
        in_port_t   port;
 
 public:
        InetAddr();
-       InetAddr(sockaddr_in &);
+       InetAddr(const sockaddr_in &);
        InetAddr(in_addr_t, in_port_t);
 
        Family      get_family() const { return INET; }