Packets: Fix VariantParser invalid parser access bug
[senf.git] / Socket / ProtocolServerSocketHandle.mpp
index 101d41b..c17e5eb 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 //
-// Copyright (C) 2006 
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-//     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Copyright (C) 2006
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+//     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // Free Software Foundation, Inc.,
 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+/** \file
+    \brief ssenf::ProtocolServerSocketHandle Boost.Preprocessor external iteration include
+ */
+
 #if !BOOST_PP_IS_ITERATING
-#ifndef MPP_PSSH__ProtocolServerSocketHandle_
+#ifndef MPP_SENF_Socket_ProtocolServerSocketHandle_
 
 // Custom includes
 #include <boost/preprocessor/iteration/iterate.hpp>
@@ -49,7 +53,7 @@
 // ProtocolServerSocketHandle (constructor) declaration
 
 template < mpp_PSSH_TemplateParameters() >
-ProtocolServerSocketHandle( mpp_PSSH_MethodParameters() );
+explicit ProtocolServerSocketHandle( mpp_PSSH_MethodParameters() );
 
 //////
 #elif BOOST_PP_ITERATION_FLAGS()==2
@@ -62,7 +66,7 @@ template < mpp_PSSH_TemplateParameters() >
 prefix_ senf::ProtocolServerSocketHandle<SocketProtocol>::
 ProtocolServerSocketHandle( mpp_PSSH_MethodParameters() )
     : ServerSocketHandle<typename SocketProtocol::Policy>(
-        std::auto_ptr<senf::SocketProtocol>(new SocketProtocol()))
+        std::auto_ptr<senf::SocketBody>(new ProtocolSocketBody<SocketProtocol>(true)))
 {
     this->protocol().init_server( mpp_PSSH_CallParameters() );
 }
@@ -71,7 +75,7 @@ ProtocolServerSocketHandle( mpp_PSSH_MethodParameters() )
 #endif
 #endif
 #if !BOOST_PP_IS_ITERATING
-#ifdef MPP_PSSH__ProtocolServerSocketHandle_
+#ifdef MPP_SENF_Socket_ProtocolServerSocketHandle_
 ///////////////////////////////////////////////////////////////////////////
 // Undefine local Macros
 
@@ -82,12 +86,15 @@ ProtocolServerSocketHandle( mpp_PSSH_MethodParameters() )
 
 //////////////////////////////mpp_PSSH_.e////////////////////////////////////////
 #else
-#define MPP_PSSH__ProtocolServerSocketHandle_ 1
+#define MPP_SENF_Socket_ProtocolServerSocketHandle_ 1
 #endif
 #endif
 
 \f
 // Local Variables:
 // mode: c++
+// fill-column: 100
 // c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
 // End: