X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FBSDSocketProtocol.cc;h=d8f5163f8d0cdf2704cd42ebc7c18857887d20da;hb=70256cc93f59f5d2c9b3428775a181e5e225bfc5;hp=117686133adb8acbc6bf2a0fda303c6831c28f14;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/BSDSocketProtocol.cc b/Socket/BSDSocketProtocol.cc index 1176861..d8f5163 100644 --- a/Socket/BSDSocketProtocol.cc +++ b/Socket/BSDSocketProtocol.cc @@ -35,7 +35,7 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// -prefix_ std::pair satcom::lib::BSDSocketProtocol::linger() +prefix_ std::pair senf::BSDSocketProtocol::linger() const { struct linger ling; @@ -46,7 +46,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 +56,11 @@ 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 { - // TODO: Check, why this fails with ENOFILE (!!!!) at least when - // called from a tcp socket. Further investigation necessary ... + /** \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 +69,7 @@ prefix_ struct timeval satcom::lib::BSDSocketProtocol::timestamp() /////////////////////////////////////////////////////////////////////////// -prefix_ bool satcom::lib::AddressableBSDSocketProtocol::reuseaddr() +prefix_ bool senf::AddressableBSDSocketProtocol::reuseaddr() const { int value; @@ -79,7 +79,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 +94,5 @@ prefix_ void satcom::lib::AddressableBSDSocketProtocol::reuseaddr(bool value) // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: