X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketPolicy.ih;h=a6d9ebbc024f93e219e4a67e5b6d2fe87621c4bb;hb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;hp=58fcba342ecf2b651e734980d19bb760798e1040;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/SocketPolicy.ih b/Socket/SocketPolicy.ih index 58fcba3..a6d9ebb 100644 --- a/Socket/SocketPolicy.ih +++ b/Socket/SocketPolicy.ih @@ -46,10 +46,12 @@ #include #include // for enable_if +#include "GenericSockAddr.hh" + ///////////////////////////////ih.p//////////////////////////////////////// -namespace satcom { -namespace lib { +namespace senf { + # define SATLIB_SOCKET_POLICIES_N BOOST_PP_SEQ_SIZE( SATLIB_SOCKET_POLICIES ) @@ -62,11 +64,7 @@ namespace lib { { virtual ~ AddressingPolicyBase() {} - class Address - { - private: - Address(); - }; + typedef GenericSockAddr Address; }; # define SP_DeclareBase(x1,x2,SomePolicy) \ @@ -207,7 +205,7 @@ namespace impl { } // namespace impl - template < BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT( SATLIB_SOCKET_POLICIES_N, class T, satcom::lib::impl::nil ) > + template < BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT( SATLIB_SOCKET_POLICIES_N, class T, senf::impl::nil ) > class MakeSocketPolicy : public boost::mpl::if_< boost::is_convertible< T0*, SocketPolicyBase* >, impl::MakeSocketPolicy_impl< T0, boost::mpl::vector< BOOST_PP_ENUM_SHIFTED_PARAMS( SATLIB_SOCKET_POLICIES_N, T ) > >, @@ -243,7 +241,7 @@ namespace impl { # undef SP_DefineConditions -}} +} ///////////////////////////////ih.e//////////////////////////////////////// #endif @@ -251,5 +249,5 @@ namespace impl { // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: