X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketProtocol.cc;h=672f21fd86b12e37a6821fa0c2330086f611a646;hb=ab05c3d687d911b4d204aa20bf900dc23d174545;hp=4c78a9f68b4fabe4d844acd0c777234a707f289a;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/Socket/SocketProtocol.cc b/Socket/SocketProtocol.cc index 4c78a9f..672f21f 100644 --- a/Socket/SocketProtocol.cc +++ b/Socket/SocketProtocol.cc @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// 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 @@ -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()