X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketProtocol.cc;h=67ed3407a45c031cfe645b43fc35a5e6cabf7983;hb=92fd389adc2b26e84344d34d5528c0eb55e145cc;hp=13ee94e7c729ad7b7b67b4a106d29ed63d3adc68;hpb=34378cabd0ef59515f60b8e535d50fd5488c84e2;p=senf.git diff --git a/Socket/SocketProtocol.cc b/Socket/SocketProtocol.cc index 13ee94e..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) - throwErrno(); + SENF_THROW_SYSTEM_EXCEPTION("::shutdown(socket_fd)"); if (::close(body().fd()) < 0) - throwErrno(); + SENF_THROW_SYSTEM_EXCEPTION("::close(socket_fd)"); } prefix_ void senf::SocketProtocol::terminate()