X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocolServerSocketHandle.cti;h=2cd77531474ef9c210eb595eaecfec51d4f3e1ab;hb=99822a43b5a79b68563b8ae09e1f36791ede66b1;hp=c615b32ce718bef6b15b5b02e6cf17a035372c25;hpb=51044eb18f034c1a059ffe2fb109a422c1cbe251;p=senf.git diff --git a/Socket/ProtocolServerSocketHandle.cti b/Socket/ProtocolServerSocketHandle.cti index c615b32..2cd7753 100644 --- a/Socket/ProtocolServerSocketHandle.cti +++ b/Socket/ProtocolServerSocketHandle.cti @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -37,26 +37,26 @@ template prefix_ senf::ProtocolServerSocketHandle:: -ProtocolServerSocketHandle(UninitializedType) +ProtocolServerSocketHandle(senf::NoInit_t) {} template prefix_ senf::ProtocolServerSocketHandle::ProtocolServerSocketHandle() : ServerSocketHandle( - std::auto_ptr(new SocketProtocol())) + std::auto_ptr(new ProtocolSocketBody(true))) {} #define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 9, SENF_ABSOLUTE_INCLUDE_PATH(Socket/ProtocolServerSocketHandle.mpp), 2)) #include BOOST_PP_ITERATE() template -prefix_ SocketProtocol const & +prefix_ SocketProtocol & senf::ProtocolServerSocketHandle::protocol() { SENF_ASSERT( dynamic_cast(&this->body().protocol()) ); // Need dynamic_cast here, since senf::SocketProtocol is a // virtual base - return dynamic_cast(this->body().protocol()); + return dynamic_cast(this->body().protocol()); } template