X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocolServerSocketHandle.cti;h=2cd77531474ef9c210eb595eaecfec51d4f3e1ab;hb=81f84badf27b66dbadec9890646ca1193e998505;hp=2fd0720b31f485e808c5e81b6952b0415f3fe521;hpb=aec1302f91b51edb58f8a97985ab2e0aa9c8db66;p=senf.git diff --git a/Socket/ProtocolServerSocketHandle.cti b/Socket/ProtocolServerSocketHandle.cti index 2fd0720..2cd7753 100644 --- a/Socket/ProtocolServerSocketHandle.cti +++ b/Socket/ProtocolServerSocketHandle.cti @@ -1,9 +1,9 @@ // $Id$ // -// Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Copyright (C) 2006 +// 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 // it under the terms of the GNU General Public License as published by @@ -21,7 +21,7 @@ // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /** \file - \brief senf::ProtocolServerSocketHandle inline template implementation + \brief ProtocolServerSocketHandle inline template implementation */ // Definition of inline template functions @@ -29,28 +29,34 @@ //#include "ProtocolServerSocketHandle.ih" // Custom includes +#include "../Utils/senfassert.hh" #include "ProtocolClientSocketHandle.hh" #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// template +prefix_ senf::ProtocolServerSocketHandle:: +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, "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 const & +prefix_ SocketProtocol & senf::ProtocolServerSocketHandle::protocol() { - BOOST_ASSERT( dynamic_cast(&this->body().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 @@ -109,5 +115,10 @@ ProtocolServerSocketHandle(FileHandle other, bool isChecked) // Local Variables: // mode: c++ +// fill-column: 100 // c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: