X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fconstants.h;h=0d94661584d1027e2ffbe39b98c52a71da7f8974;hb=21c596567e3b6fd794ed6af73d304ce2bc70e58f;hp=3a883fbb0fa37b415607369712310ec656dd2650;hpb=f59eded7c3e162bbdfc6db424c9badc730017698;p=libs%2Fnet.git diff --git a/source/constants.h b/source/constants.h index 3a883fb..0d94661 100644 --- a/source/constants.h +++ b/source/constants.h @@ -1,30 +1,20 @@ -/* $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 -#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