X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fconstants.h;h=0d94661584d1027e2ffbe39b98c52a71da7f8974;hb=2c8b294d26facc7ccca1f5a8dc26765a2ee7d75d;hp=2edb643734307be2223e8433dc25729d22247a04;hpb=2aab4004e71a2e5c773289e0be5e58aec6a8d339;p=libs%2Fnet.git diff --git a/source/constants.h b/source/constants.h index 2edb643..0d94661 100644 --- a/source/constants.h +++ b/source/constants.h @@ -1,23 +1,20 @@ #ifndef MSP_NET_CONSTANTS_H_ #define MSP_NET_CONSTANTS_H_ -#ifdef WIN32 -#include -#else -#include -#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