X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketHandle.cc;h=3f8a0ce87b1baf9a66f12a2da7e4e813aca59db8;hb=032707d24b1059febe83ce56b11fd79df106c6e2;hp=d0e7e91a64d532b81db9751fa7117766993f379d;hpb=b2d64a4084a053f0887c7845bb81074e0cd3a855;p=senf.git diff --git a/Socket/SocketHandle.cc b/Socket/SocketHandle.cc index d0e7e91..3f8a0ce 100644 --- a/Socket/SocketHandle.cc +++ b/Socket/SocketHandle.cc @@ -34,7 +34,7 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// -prefix_ void satcom::lib::SocketBody::v_close() +prefix_ void senf::SocketBody::v_close() { if (::shutdown(fd(),SHUT_RDWR) < 0) throw SystemException(errno); @@ -42,7 +42,7 @@ prefix_ void satcom::lib::SocketBody::v_close() throw SystemException(errno); } -prefix_ void satcom::lib::SocketBody::v_terminate() +prefix_ void senf::SocketBody::v_terminate() { struct linger ling; ling.l_onoff = 0; @@ -56,13 +56,13 @@ prefix_ void satcom::lib::SocketBody::v_terminate() ::close(fd()); } -prefix_ bool satcom::lib::SocketBody::v_eof() +prefix_ bool senf::SocketBody::v_eof() const { return protocol().eof(); } -prefix_ void satcom::lib::SocketBody::state(SocketStateMap & map, unsigned lod) +prefix_ void senf::SocketBody::state(SocketStateMap & map, unsigned lod) { map["file.handle"] = fd(); map["file.refcount"] = refcount(); @@ -73,7 +73,7 @@ prefix_ void satcom::lib::SocketBody::state(SocketStateMap & map, unsigned lod) } /////////////////////////////////////////////////////////////////////////// -// satcom::lib::detail::StateMapOrdering +// senf::detail::StateMapOrdering namespace { bool contains(std::string::iterator b, std::string::iterator e, char c) @@ -85,7 +85,7 @@ namespace { } } -prefix_ bool satcom::lib::detail::StateMapOrdering::operator()(std::string a1, std::string a2) +prefix_ bool senf::detail::StateMapOrdering::operator()(std::string a1, std::string a2) const { std::string::iterator i1 (a1.begin()); @@ -99,14 +99,14 @@ prefix_ bool satcom::lib::detail::StateMapOrdering::operator()(std::string a1, s return false; if (contains(i2,i2_end,'.')) // the longer string is a sub-'directory' of the shorter - // FIXME: shouldn't this be *i2 == '.' ? + /** \fixme shouldn't this be *i2 == '.' ? */ return true; return *i1 < *i2; } else if (i2 == i2_end) { // && i1 != i1_end if (contains(i1,i1_end,'.')) // the longer string is a sub-'directory' of the shorter - // FIXME: shouldn't this be *i1 == '.' ? + /** \fixme shouldn't this be *i1 == '.' ? */ return false; return *i1 < *i2; } @@ -120,7 +120,7 @@ prefix_ bool satcom::lib::detail::StateMapOrdering::operator()(std::string a1, s return *i1 < *i2; } -prefix_ std::string satcom::lib::detail::dumpState(SocketStateMap const & map) +prefix_ std::string senf::detail::dumpState(SocketStateMap const & map) { std::stringstream s; SocketStateMap::const_iterator i (map.begin()); @@ -131,7 +131,7 @@ prefix_ std::string satcom::lib::detail::dumpState(SocketStateMap const & map) } template -prefix_ std::ostream & satcom::lib::operator<<(std::ostream & os, SocketHandle handle) +prefix_ std::ostream & senf::operator<<(std::ostream & os, SocketHandle handle) { os << handle.dumpState(); return os; @@ -144,5 +144,5 @@ prefix_ std::ostream & satcom::lib::operator<<(std::ostream & os, SocketHandle