X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketHandle.hh;h=7b64f531373ee60b71372c875aa5d5e218d9454a;hb=c778649a04a9835ecaad9108b9613832d76c2d15;hp=ce67d0e78de687ac990791fbd23e19ad73aacac9;hpb=8421c3a8da7485cb8781045494ecaab3ed84f403;p=senf.git diff --git a/Socket/SocketHandle.hh b/Socket/SocketHandle.hh index ce67d0e..7b64f53 100644 --- a/Socket/SocketHandle.hh +++ b/Socket/SocketHandle.hh @@ -1,9 +1,9 @@ // $Id:SocketHandle.hh 218 2007-03-20 14:39:32Z tho $ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// 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 @@ -63,7 +63,7 @@ namespace senf { \todo Create a SocketHandleBase class and move some non-Policy dependent code there */ - template + template class SocketHandle : public FileHandle { @@ -71,7 +71,7 @@ namespace senf { /////////////////////////////////////////////////////////////////////////// // Types - typedef SocketPolicy Policy; + typedef SPolicy Policy; /** \brief Check policy compatibility @@ -81,8 +81,7 @@ namespace senf { */ template struct IsCompatible - : public boost::enable_if< SocketPolicyIsBaseOf, - SocketHandle > + : public boost::enable_if< SocketPolicyIsBaseOf, SocketHandle > {}; /////////////////////////////////////////////////////////////////////////// @@ -126,8 +125,8 @@ namespace senf { \param map string to string mapping to be filled with state information - \param lod level of detail requested. The interpretation - of this value is protocol specific + \param lod level of detail requested. The + interpretation of this value is protocol specific \implementation This member will be re-implemented in every derived class. This is very important since @@ -139,15 +138,15 @@ namespace senf { /**< Formats the complete state map value and returns it as a single multi-line string. - param lod level of detail requested. The interpretation - of this value is protocol specific - + \param lod level of detail requested. The + interpretation of this value is protocol specific + \implementation This member will be re-implemented in every derived class. See the state() documentation. */ protected: - explicit SocketHandle(std::auto_ptr protocol, bool isServer); + explicit SocketHandle(std::auto_ptr body); ///< Initialize SocketHandle providing the protocol /**< \param protocol Protocol class of the protocol implemented by this socket handle @@ -169,8 +168,7 @@ namespace senf { \param isChecked has to be \c true \todo Answer, why the heck I need the \c isChecked - parameter ?? - */ + parameter ?? */ SocketBody & body(); ///< Access socket body /**< This member replaces the corresponding FileHandle @@ -201,8 +199,8 @@ namespace senf { \related senf::SocketHandle */ - template - std::ostream & operator<<(std::ostream & os, SocketHandle handle); + template + std::ostream & operator<<(std::ostream & os, SocketHandle handle); /** \brief static socket (down-)cast @@ -265,4 +263,6 @@ namespace senf { // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: