X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FProtocolServerSocketHandle.cti;h=abc540097eca5acf2bbd6e000c089ad3efbabb14;hb=7ee689fe38d66aa3a0004d55e8708750d35adc0b;hp=26c2b696551c22789436a927251eb4b0d839201c;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Socket/ProtocolServerSocketHandle.cti b/senf/Socket/ProtocolServerSocketHandle.cti index 26c2b69..abc5400 100644 --- a/senf/Socket/ProtocolServerSocketHandle.cti +++ b/senf/Socket/ProtocolServerSocketHandle.cti @@ -29,11 +29,11 @@ //#include "ProtocolServerSocketHandle.ih" // Custom includes -#include "../Utils/senfassert.hh" +#include #include "ProtocolClientSocketHandle.hh" #define prefix_ inline -///////////////////////////////cti.p/////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// template prefix_ senf::ProtocolServerSocketHandle:: @@ -46,14 +46,16 @@ prefix_ senf::ProtocolServerSocketHandle::ProtocolServerSocketHa std::auto_ptr(new ProtocolSocketBody(true))) {} -#define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 9, SENF_ABSOLUTE_INCLUDE_PATH(Socket/ProtocolServerSocketHandle.mpp), 2)) +#define BOOST_PP_ITERATION_PARAMS_1 \ + (4, (1, 9, SENF_ABSOLUTE_INCLUDE_PATH(Socket/ProtocolServerSocketHandle.mpp), 2)) #include BOOST_PP_ITERATE() template prefix_ SocketProtocol & senf::ProtocolServerSocketHandle::protocol() { - SENF_ASSERT( dynamic_cast(&this->body().protocol()) ); + SENF_ASSERT( dynamic_cast(&this->body().protocol()), + "Internal failure: Incompatible protocol class fount it's way into this handle"); // Need dynamic_cast here, since senf::SocketProtocol is a // virtual base return dynamic_cast(this->body().protocol()); @@ -113,7 +115,7 @@ ProtocolServerSocketHandle(FileHandle other, bool isChecked) : ServerSocketHandle(other,isChecked) {} -///////////////////////////////cti.e/////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #undef prefix_