Merged revisions 570-575,577-578 via svnmerge from
[senf.git] / Socket / SocketProtocol.cci
index a8a848b..1a55451 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2006 
+// Copyright (C) 2006
 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
 //     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
@@ -20,7 +20,9 @@
 // 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"
 
 #define prefix_ inline
 ///////////////////////////////cci.p///////////////////////////////////////
 
+///////////////////////////////////////////////////////////////////////////
+// senf::SocketProtocol
+
+prefix_ senf::FileHandle senf::SocketProtocol::fh()
+    const
+{
+    return body().handle();
+}
+
+prefix_ int senf::SocketProtocol::fd()
+    const
+{
+    return body().fd();
+}
+
+prefix_ void senf::SocketProtocol::fd(int fd)
+    const
+{
+    BOOST_ASSERT(! body().valid());
+    body().fd(fd);
+}
+
 prefix_ senf::SocketProtocol::SocketProtocol()
     : body_(0)
 {}
@@ -50,5 +74,10 @@ prefix_ senf::SocketBody & senf::SocketProtocol::body()
 \f
 // 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: