X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FUN%2FUNDatagramSocketHandle.cc;h=895cf63414670a924f9e996010e0a008d37aa7e3;hb=3863d46dd898b7bc35ea8c6ccd8563b18762a6b6;hp=360ec03e4d12e7c3f886a5de266ba2d6032140bb;hpb=0de6c83e2769c7deb2ed3c57d7b26e8cb3fcca04;p=senf.git diff --git a/Socket/Protocols/UN/UNDatagramSocketHandle.cc b/Socket/Protocols/UN/UNDatagramSocketHandle.cc index 360ec03..895cf63 100644 --- a/Socket/Protocols/UN/UNDatagramSocketHandle.cc +++ b/Socket/Protocols/UN/UNDatagramSocketHandle.cc @@ -1,6 +1,9 @@ // $Id$ // -// Copyright (C) 2007 +// 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 // it under the terms of the GNU General Public License as published by @@ -38,14 +41,14 @@ prefix_ void senf::UNDatagramSocketProtocol::init_client() const { int sock = ::socket(PF_UNIX,SOCK_DGRAM,0); if (sock < 0) - throw SystemException(errno); - body().fd(sock); + 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 +prefix_ void senf::UNDatagramSocketProtocol::init_client(UNSocketAddress const & address) const { init_client(); - //bind(address); + clientHandle().bind(address); } ///////////////////////////////cc.e////////////////////////////////////////