#include <sys/socket.h>
#include <sys/ioctl.h>
#include <linux/sockios.h> // for SIOCINQ / SIOCOUTQ
+#include <senf/Utils/Logger.hh>
#include "../../../Utils/Exception.hh"
//#include "UNSocketProtocol.mpp"
{
int n;
if (::ioctl(fd(),SIOCINQ,&n) < 0)
- throw SystemException();
+ SENF_THROW_SYSTEM_EXCEPTION("Could not call available() on UNSocket.");
return n;
}
::unlink(una.path().c_str());
}
catch (SystemException & e) {
+ SENF_LOG(("UNSocketProtocol::check_and_unlink() failed; [" << e.errorString() << "]."));
}
}