X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FUN%2FUNDatagramSocketHandle.cc;h=895cf63414670a924f9e996010e0a008d37aa7e3;hb=3863d46dd898b7bc35ea8c6ccd8563b18762a6b6;hp=b7221a67faa9f59105879c424580485559b2f599;hpb=a6a62d801329d592d8e227d9cf75254c2d681049;p=senf.git diff --git a/Socket/Protocols/UN/UNDatagramSocketHandle.cc b/Socket/Protocols/UN/UNDatagramSocketHandle.cc index b7221a6..895cf63 100644 --- a/Socket/Protocols/UN/UNDatagramSocketHandle.cc +++ b/Socket/Protocols/UN/UNDatagramSocketHandle.cc @@ -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////////////////////////////////////////