X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fconstants.h;h=0d94661584d1027e2ffbe39b98c52a71da7f8974;hp=4feefcc25c46fe50628454cfc5895f4db82225ff;hb=bdd968802348fae7a7a407616cb3744e4877601a;hpb=4b408e693bcb004ccaa6958610e946cfbeff9465 diff --git a/source/constants.h b/source/constants.h index 4feefcc..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