-/* $Id$
-
-This file is part of libmspnet
-Copyright © 2008 Mikkosoft Productions, Mikko Rasa
-Distributed under the LGPL
-*/
-
#ifndef MSP_NET_CONSTANTS_H_
#define MSP_NET_CONSTANTS_H_
-#ifdef WIN32
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#endif
-
namespace Msp {
namespace Net {
enum Family
{
- UNSPEC=AF_UNSPEC,
- INET=AF_INET,
- INET6=AF_INET6,
- UNIF=AF_UNIX
+ UNSPEC,
+ INET,
+ INET6,
+ UNIX
};
+int family_to_sys(Family);
+Family family_from_sys(int);
+
} // namespace Net
} // namespace Msp