X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketProtocol.cc;h=3a1fac50a19b1b5abd3966e40a4f2f0c959933f7;hb=5443435c4c2b6e4386c5334b5b8358273f2bae93;hp=13ee94e7c729ad7b7b67b4a106d29ed63d3adc68;hpb=34378cabd0ef59515f60b8e535d50fd5488c84e2;p=senf.git diff --git a/Socket/SocketProtocol.cc b/Socket/SocketProtocol.cc index 13ee94e..3a1fac5 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,11 @@ //#include "SocketProtocol.mpp" #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// + prefix_ void senf::SocketProtocol::close() - const { - if (::shutdown(body().fd(),SHUT_RDWR) < 0) - throwErrno(); if (::close(body().fd()) < 0) - throwErrno(); + SENF_THROW_SYSTEM_EXCEPTION("::close(socket_fd)"); } prefix_ void senf::SocketProtocol::terminate()