X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketProtocol.cci;h=04be16c20dd9cf98ac1a0c3f9a2bedb322601c18;hb=6f50bf49e282c0528f51faa0a245bbfa2b867399;hp=0dcff103f41739ab0fe0597f520a087295f4f3d0;hpb=d0006132bfcb3ab442cf66b600ed3fad36f1ac2c;p=senf.git diff --git a/Socket/SocketProtocol.cci b/Socket/SocketProtocol.cci index 0dcff10..04be16c 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 @@ -27,30 +27,50 @@ //#include "SocketProtocol.ih" // Custom includes -#include +#include "../Utils/senfassert.hh" +#include "../Utils/Logger/SenfLog.hh" #define prefix_ inline ///////////////////////////////cci.p/////////////////////////////////////// -prefix_ senf::SocketProtocol::SocketProtocol() - : body_(0) -{} +/////////////////////////////////////////////////////////////////////////// +// senf::SocketProtocol -prefix_ senf::SocketProtocol::~SocketProtocol() -{} +prefix_ senf::FileHandle senf::SocketProtocol::fh() + const +{ + return body().handle(); +} -prefix_ senf::SocketBody & senf::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++ +// fill-column: 100 // c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: