X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fconstants.h;fp=source%2Fnet%2Fconstants.h;h=0d94661584d1027e2ffbe39b98c52a71da7f8974;hb=50e9f9ea7f7385a2c5931fca2b8fb1103078e67c;hp=0000000000000000000000000000000000000000;hpb=21c596567e3b6fd794ed6af73d304ce2bc70e58f;p=libs%2Fnet.git diff --git a/source/net/constants.h b/source/net/constants.h new file mode 100644 index 0000000..0d94661 --- /dev/null +++ b/source/net/constants.h @@ -0,0 +1,21 @@ +#ifndef MSP_NET_CONSTANTS_H_ +#define MSP_NET_CONSTANTS_H_ + +namespace Msp { +namespace Net { + +enum Family +{ + UNSPEC, + INET, + INET6, + UNIX +}; + +int family_to_sys(Family); +Family family_from_sys(int); + +} // namespace Net +} // namespace Msp + +#endif