X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketHandle.cci;h=20d3a9d687eec1ac6c983d3e30a86d71ddfc6a27;hb=1ad3873b372da6187b1fbc645bf276287d2efb54;hp=f036df15ea99047b6e8995255b9e70070e5ec05f;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/SocketHandle.cci b/Socket/SocketHandle.cci index f036df1..20d3a9d 100644 --- a/Socket/SocketHandle.cci +++ b/Socket/SocketHandle.cci @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -20,18 +20,20 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Definition of inline non-template functions +/** \file + \brief SocketHandle inline non-template implementation + */ #include "SocketHandle.ih" // Custom includes -#include "Utils/Exception.hh" +#include "../Utils/Exception.hh" #include "SocketProtocol.hh" #define prefix_ inline ///////////////////////////////cci.p/////////////////////////////////////// -prefix_ satcom::lib::SocketBody::SocketBody(std::auto_ptr protocol, +prefix_ senf::SocketBody::SocketBody(std::auto_ptr protocol, bool isServer) : protocol_(protocol), isServer_(isServer) { @@ -39,7 +41,7 @@ prefix_ satcom::lib::SocketBody::SocketBody(std::auto_ptr protoc protocol_->body_ = this; } -prefix_ satcom::lib::SocketBody::SocketBody(std::auto_ptr protocol, +prefix_ senf::SocketBody::SocketBody(std::auto_ptr protocol, bool isServer, int fd) : FileBody(fd), protocol_(protocol), isServer_(isServer) { @@ -47,26 +49,24 @@ prefix_ satcom::lib::SocketBody::SocketBody(std::auto_ptr protoc protocol_->body_ = this; } -prefix_ satcom::lib::SocketProtocol const & satcom::lib::SocketBody::protocol() +prefix_ senf::SocketProtocol const & senf::SocketBody::protocol() const { return *protocol_; } -prefix_ bool satcom::lib::SocketBody::isServer() +prefix_ bool senf::SocketBody::isServer() { return isServer_; } /////////////////////////////////////////////////////////////////////////// -// satcom::lib::detail::ConvertibleString +// senf::detail::StreamableString -prefix_ satcom::lib::detail::ConvertibleString::ConvertibleString() -{} - -prefix_ satcom::lib::detail::ConvertibleString::ConvertibleString(bool v) - : std::string(v ? "true" : "false") -{} +prefix_ senf::detail::StreamableString & senf::detail::StreamableString::operator<<(bool v) +{ + return (*this) << std::string(v ? "true" : "false"); +} ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_ @@ -74,5 +74,10 @@ prefix_ satcom::lib::detail::ConvertibleString::ConvertibleString(bool v) // Local Variables: // mode: c++ -// c-file-style: "satcom" +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: