X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketProtocol.cci;h=372ef3eccf3bc674ac431b3f34f295b034a599ee;hb=a1fdb7bb122f0b05be809a922d4b7ef5e125fa67;hp=a10def64e3cbeeaccea5cac689dc0058baff3004;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/SocketProtocol.cci b/Socket/SocketProtocol.cci index a10def6..372ef3e 100644 --- a/Socket/SocketProtocol.cci +++ b/Socket/SocketProtocol.cci @@ -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,35 +20,56 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Definition of inline non-template functions +/** \file + \brief SocketProtocol and ConcreteSocketProtocol inline non-template implementation + */ //#include "SocketProtocol.ih" // Custom includes -#include +#include "../Utils/senfassert.hh" #define prefix_ inline ///////////////////////////////cci.p/////////////////////////////////////// -prefix_ satcom::lib::SocketProtocol::SocketProtocol() - : body_(0) -{} +/////////////////////////////////////////////////////////////////////////// +// senf::SocketProtocol -prefix_ satcom::lib::SocketProtocol::~SocketProtocol() -{} +prefix_ senf::FileHandle senf::SocketProtocol::fh() + const +{ + return body().handle(); +} -prefix_ satcom::lib::SocketBody & satcom::lib::SocketProtocol::body() +prefix_ int senf::SocketProtocol::fd() const { - BOOST_ASSERT( body_ ); - return *body_; + return body().fd(); } +prefix_ void senf::SocketProtocol::fd(int fd) + const +{ + SENF_ASSERT(! body().valid()); + body().fd(fd); +} + +prefix_ senf::SocketProtocol::SocketProtocol() +{} + +prefix_ senf::SocketProtocol::~SocketProtocol() +{} + ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_ // 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: