X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FGenericAddressingPolicy.cc;h=9031707cfc1c5824d55deb47eefb84b86c8b2127;hb=3cb0a2ff50b8f1111da34b696e64fb1b037cd683;hp=2a179a9f28711594d21b1bac31ae4ca7c218ae61;hpb=2c4c9deecc7491fbfc916aeb41074dcb76e8a2c2;p=senf.git diff --git a/Socket/Protocols/GenericAddressingPolicy.cc b/Socket/Protocols/GenericAddressingPolicy.cc index 2a179a9..9031707 100644 --- a/Socket/Protocols/GenericAddressingPolicy.cc +++ b/Socket/Protocols/GenericAddressingPolicy.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 @@ -30,7 +30,7 @@ // Custom includes #include #include -#include "Utils/Exception.hh" +#include "../../Utils/Exception.hh" //#include "GenericAddressingPolicy.mpp" #define prefix_ @@ -41,7 +41,7 @@ prefix_ void senf::GenericAddressingPolicy_Base::do_local(FileHandle handle, unsigned len) { if (::getsockname(handle.fd(),addr,&len) < 0) - throw SystemException(errno); + SENF_THROW_SYSTEM_EXCEPTION(""); } prefix_ void senf::GenericAddressingPolicy_Base::do_peer(FileHandle handle, @@ -49,7 +49,7 @@ prefix_ void senf::GenericAddressingPolicy_Base::do_peer(FileHandle handle, unsigned len) { if (::getpeername(handle.fd(),addr,&len) < 0) - throw SystemException(errno); + SENF_THROW_SYSTEM_EXCEPTION(""); } prefix_ void senf::GenericAddressingPolicy_Base::do_bind(FileHandle handle, @@ -57,7 +57,7 @@ prefix_ void senf::GenericAddressingPolicy_Base::do_bind(FileHandle handle, unsigned len) { if (::bind(handle.fd(),addr,len) < 0) - throw SystemException(errno); + SENF_THROW_SYSTEM_EXCEPTION(""); } prefix_ void senf::GenericAddressingPolicy_Base::do_connect(FileHandle handle, @@ -72,15 +72,15 @@ prefix_ void senf::GenericAddressingPolicy_Base::do_connect(FileHandle handle, int err = 0; socklen_t len = sizeof(err); if (::getsockopt(handle.fd(),SOL_SOCKET,SO_ERROR,&err,&len) < 0) - throw SystemException(errno); + SENF_THROW_SYSTEM_EXCEPTION(""); if (err != 0) - throw SystemException(err); + throw SystemException(err SENF_EXC_DEBUGINFO); return; } case EINTR: break; default: - throw SystemException(errno); + SENF_THROW_SYSTEM_EXCEPTION(""); } else return;