X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FGenericAddressingPolicy.cc;h=5090f699750f84118927e81c17330b8297a2ec5c;hb=6e4cfeb813b1da364395b2da6e3762e0abd2ac70;hp=70ac3d5684049902e61f7856b7049899a3442c51;hpb=8d2d26f114d3df0a60c5c516fcf40671b1e55558;p=senf.git diff --git a/Socket/Protocols/GenericAddressingPolicy.cc b/Socket/Protocols/GenericAddressingPolicy.cc index 70ac3d5..5090f69 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 @@ -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); + throw SystemException(); } 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); + throw SystemException(); } 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); + throw SystemException(); } prefix_ void senf::GenericAddressingPolicy_Base::do_connect(FileHandle handle, @@ -72,7 +72,7 @@ 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); + throw SystemException(); if (err != 0) throw SystemException(err); return; @@ -80,7 +80,7 @@ prefix_ void senf::GenericAddressingPolicy_Base::do_connect(FileHandle handle, case EINTR: break; default: - throw SystemException(errno); + throw SystemException(); } else return;