Utils/Console: Console UDPServer
[senf.git] / Socket / Protocols / UN / UNSocketProtocol.cc
index 61d1a71..9a4075c 100644 (file)
@@ -31,7 +31,7 @@
 #include <sys/socket.h>
 #include <sys/ioctl.h>
 #include <linux/sockios.h> // for SIOCINQ / SIOCOUTQ
-#include <senf/Utils/Logger.hh>
+#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.description() ));
+        SENF_LOG(("UNSocketProtocol::check_and_unlink() failed; [" << e.errorString() << "]."));
     }
 }