X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FUN%2FUNDatagramSocketHandle.cc;h=895cf63414670a924f9e996010e0a008d37aa7e3;hb=731a143df4de38d4c8b0a81121990951971cd858;hp=36c9bc7d3b5f020203ad8ec69ae2c17ad3a04e79;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/Socket/Protocols/UN/UNDatagramSocketHandle.cc b/Socket/Protocols/UN/UNDatagramSocketHandle.cc index 36c9bc7..895cf63 100644 --- a/Socket/Protocols/UN/UNDatagramSocketHandle.cc +++ b/Socket/Protocols/UN/UNDatagramSocketHandle.cc @@ -1,6 +1,8 @@ -// Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Kompetenzzentrum NETwork research (NET) +// $Id$ +// +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // David Wagner // // This program is free software; you can redistribute it and/or modify @@ -39,20 +41,14 @@ prefix_ void senf::UNDatagramSocketProtocol::init_client() const { int sock = ::socket(PF_UNIX,SOCK_DGRAM,0); if (sock < 0) - throwErrno(); + 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(); - bind(address); -} - -prefix_ std::auto_ptr senf::UNDatagramSocketProtocol::clone() - const -{ - return std::auto_ptr(new UNDatagramSocketProtocol()); + clientHandle().bind(address); } ///////////////////////////////cc.e////////////////////////////////////////