X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FUN%2FUNSocketProtocol.cc;h=9a4075cace48b99141d103451852c4afdd6c00d4;hb=a6069ae6d8b265abc2f156d1ea0e12adca3771d5;hp=0c58441f1bffff1f6c89dfd212bb2e3726300f5c;hpb=a66bffcc77f006b22190e1c27cbe0cd75fc4501c;p=senf.git diff --git a/Socket/Protocols/UN/UNSocketProtocol.cc b/Socket/Protocols/UN/UNSocketProtocol.cc index 0c58441..9a4075c 100644 --- a/Socket/Protocols/UN/UNSocketProtocol.cc +++ b/Socket/Protocols/UN/UNSocketProtocol.cc @@ -31,7 +31,7 @@ #include #include #include // for SIOCINQ / SIOCOUTQ -#include +#include "../../../Utils/Logger/SenfLog.hh" #include "../../../Utils/Exception.hh" //#include "UNSocketProtocol.mpp" @@ -42,7 +42,7 @@ prefix_ unsigned senf::UNSocketProtocol::available() { int n; if (::ioctl(fd(),SIOCINQ,&n) < 0) - throw SystemException("Could not call available() on UNSocket"); + SENF_THROW_SYSTEM_EXCEPTION("Could not call available() on UNSocket."); return n; } @@ -53,7 +53,6 @@ prefix_ bool senf::UNSocketProtocol::eof() } prefix_ void senf::UNSocketProtocol::close() - const { check_and_unlink(); @@ -77,7 +76,7 @@ prefix_ void senf::UNSocketProtocol::check_and_unlink() ::unlink(una.path().c_str()); } catch (SystemException & e) { - SENF_LOG(("UNSocketProtocol::check_and_unlink() failed; " << e.errorString() )); + SENF_LOG(("UNSocketProtocol::check_and_unlink() failed; [" << e.errorString() << "].")); } }