X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FBSDSocketProtocol.cc;h=889da3cbe81a56928dcfcb712981bebc02ebfe37;hb=5457377c2eda70c535303f6cf87413bbb51bf1ea;hp=f7df702b769bab560d00a53fd9d3f8f0ac0d6557;hpb=293b3dd09b628efbf270631ce68bb17b318390f1;p=senf.git diff --git a/Socket/BSDSocketProtocol.cc b/Socket/BSDSocketProtocol.cc index f7df702..889da3c 100644 --- a/Socket/BSDSocketProtocol.cc +++ b/Socket/BSDSocketProtocol.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -20,7 +20,8 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Definition of non-inline non-template functions +/** \file + \brief BSDSocketProtocol non-inline non-template implementation */ #include "BSDSocketProtocol.hh" //#include "BSDSocketProtocol.ih" @@ -35,7 +36,7 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// -prefix_ std::pair satcom::lib::BSDSocketProtocol::linger() +prefix_ std::pair senf::BSDSocketProtocol::linger() const { struct linger ling; @@ -46,7 +47,7 @@ prefix_ std::pair satcom::lib::BSDSocketProtocol::linger() return std::make_pair(ling.l_onoff, ling.l_linger); } -prefix_ void satcom::lib::BSDSocketProtocol::linger(bool enable, unsigned timeout) +prefix_ void senf::BSDSocketProtocol::linger(bool enable, unsigned timeout) const { struct linger ling; @@ -56,11 +57,9 @@ prefix_ void satcom::lib::BSDSocketProtocol::linger(bool enable, unsigned timeou throw SystemException(errno); } -prefix_ struct timeval satcom::lib::BSDSocketProtocol::timestamp() +prefix_ struct timeval senf::BSDSocketProtocol::timestamp() const { - // BUG: Check, why this fails with ENOFILE (!!!!) at least when - // called from a tcp socket. Further investigation necessary ... struct timeval tv; if (::ioctl(body().fd(), SIOCGSTAMP, &tv) < 0) throw SystemException(errno); @@ -69,7 +68,7 @@ prefix_ struct timeval satcom::lib::BSDSocketProtocol::timestamp() /////////////////////////////////////////////////////////////////////////// -prefix_ bool satcom::lib::AddressableBSDSocketProtocol::reuseaddr() +prefix_ bool senf::AddressableBSDSocketProtocol::reuseaddr() const { int value; @@ -79,7 +78,7 @@ prefix_ bool satcom::lib::AddressableBSDSocketProtocol::reuseaddr() return value; } -prefix_ void satcom::lib::AddressableBSDSocketProtocol::reuseaddr(bool value) +prefix_ void senf::AddressableBSDSocketProtocol::reuseaddr(bool value) const { int ivalue (value); @@ -94,5 +93,10 @@ prefix_ void satcom::lib::AddressableBSDSocketProtocol::reuseaddr(bool value) // 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: