Socket/Protocols/Raw/PacketSocketHandle: added promisc() method
[senf.git] / Socket / Protocols / UN / UNDatagramSocketHandle.cc
index 7586683..895cf63 100644 (file)
@@ -41,19 +41,14 @@ prefix_ void senf::UNDatagramSocketProtocol::init_client() const
 {
     int sock = ::socket(PF_UNIX,SOCK_DGRAM,0);
     if (sock < 0)
-        throw SystemException( "Could not create socket(PF_UNIX,SOCK_DGRAM,0)" );
+        SENF_THROW_SYSTEM_EXCEPTION("Could not create socket(PF_UNIX,SOCK_DGRAM,0).");
     fd(sock);
 }
 
 prefix_ void senf::UNDatagramSocketProtocol::init_client(UNSocketAddress const & address) const 
 {
     init_client();
-    try {
-        clientHandle().bind(address);
-    } catch (SystemException & e) {
-        e << "; could not bind to address \"" << address.path() << "\"";
-        throw;
-    }
+    clientHandle().bind(address);
 }
 
 ///////////////////////////////cc.e////////////////////////////////////////