X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketProtocol.cc;h=672f21fd86b12e37a6821fa0c2330086f611a646;hb=6e4cfeb813b1da364395b2da6e3762e0abd2ac70;hp=13ee94e7c729ad7b7b67b4a106d29ed63d3adc68;hpb=34378cabd0ef59515f60b8e535d50fd5488c84e2;p=senf.git diff --git a/Socket/SocketProtocol.cc b/Socket/SocketProtocol.cc index 13ee94e..672f21f 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(); + throw SystemException(); if (::close(body().fd()) < 0) - throwErrno(); + throw SystemException(); } prefix_ void senf::SocketProtocol::terminate()