// $Id$
//
// Copyright (C) 2006
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// Stefan Bund <g0dil@berlios.de>
//
// 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
//#include "SocketProtocol.mpp"
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
+
prefix_ void senf::SocketProtocol::close()
const
{
if (::shutdown(body().fd(),SHUT_RDWR) < 0)
- throw SystemException(errno);
+ SENF_THROW_SYSTEM_EXCEPTION("::shutdown(socket_fd)");
if (::close(body().fd()) < 0)
- throw SystemException(errno);
+ SENF_THROW_SYSTEM_EXCEPTION("::close(socket_fd)");
}
prefix_ void senf::SocketProtocol::terminate()