X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketProtocol.cc;h=5e15222aa45c71b52ae53aaf4403ad5b6108a783;hb=87ee88924d6f07408ef02ddb439394a47882c765;hp=13ee94e7c729ad7b7b67b4a106d29ed63d3adc68;hpb=34378cabd0ef59515f60b8e535d50fd5488c84e2;p=senf.git diff --git a/Socket/SocketProtocol.cc b/Socket/SocketProtocol.cc index 13ee94e..5e15222 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,12 @@ //#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()