X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketProtocol.cc;h=67ed3407a45c031cfe645b43fc35a5e6cabf7983;hb=55c979a770543e8086a9828f5ec4576a7c7a9384;hp=e34144752d5a200a884dcdf0cd6038182eaa85ca;hpb=171b7d9c23896219fc63a6c4a75fc86dfd4bb042;p=senf.git diff --git a/Socket/SocketProtocol.cc b/Socket/SocketProtocol.cc index e341447..67ed340 100644 --- a/Socket/SocketProtocol.cc +++ b/Socket/SocketProtocol.cc @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Stefan Bund // // 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 @@ -33,13 +33,14 @@ //#include "SocketProtocol.mpp" #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// + prefix_ void senf::SocketProtocol::close() const { if (::shutdown(body().fd(),SHUT_RDWR) < 0) - throw SystemException(errno); + SENF_THROW_SYSTEM_EXCEPTION("::shutdown(socket_fd)"); if (::close(body().fd()) < 0) - throw SystemException(errno); + SENF_THROW_SYSTEM_EXCEPTION("::close(socket_fd)"); } prefix_ void senf::SocketProtocol::terminate()