X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocolClientSocketHandle.cti;h=efdb9349a20592c3ddbc11391d04916a389a06e4;hb=99822a43b5a79b68563b8ae09e1f36791ede66b1;hp=1b20fdbcaa10ba4915bf603e2845d594319a9f98;hpb=aec1302f91b51edb58f8a97985ab2e0aa9c8db66;p=senf.git diff --git a/Socket/ProtocolClientSocketHandle.cti b/Socket/ProtocolClientSocketHandle.cti index 1b20fdb..efdb934 100644 --- a/Socket/ProtocolClientSocketHandle.cti +++ b/Socket/ProtocolClientSocketHandle.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 @@ -20,9 +20,9 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -/** \file - \brief senf::ProtocolClientSocketHandle inline template - implementation +/** \file + \brief ProtocolClientSocketHandle inline template + implementation */ // Definition of inline template functions @@ -30,19 +30,25 @@ //#include "ProtocolClientSocketHandle.ih" // Custom includes +#include "../Utils/senfassert.hh" #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// template +prefix_ senf::ProtocolClientSocketHandle:: +ProtocolClientSocketHandle(senf::NoInit_t) +{} + +template prefix_ senf::ProtocolClientSocketHandle::ProtocolClientSocketHandle() : ClientSocketHandle( - std::auto_ptr(new SocketProtocol())) + std::auto_ptr(new senf::ProtocolSocketBody(false))) { this->protocol().init_client(); } -#define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 9, "Socket/ProtocolClientSocketHandle.mpp", 2)) +#define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 9, SENF_ABSOLUTE_INCLUDE_PATH(Socket/ProtocolClientSocketHandle.mpp), 2)) #include BOOST_PP_ITERATE() template @@ -52,13 +58,13 @@ ProtocolClientSocketHandle(FileHandle other, bool isChecked) {} template -prefix_ SocketProtocol const & +prefix_ SocketProtocol & senf::ProtocolClientSocketHandle::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 @@ -103,5 +109,10 @@ senf::ProtocolClientSocketHandle::dumpState(unsigned lod) // 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: