X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FCommunicationPolicy.cc;h=ef0bba51ba8e8e70032d656eb399abb7a11228cb;hb=532240d72e09e19e57fac9bb55c2560b9c9e5b97;hp=eedc8fb4e9442ee63a1a8ee880f5aa8e69390a8e;hpb=8421c3a8da7485cb8781045494ecaab3ed84f403;p=senf.git diff --git a/Socket/CommunicationPolicy.cc b/Socket/CommunicationPolicy.cc index eedc8fb..ef0bba5 100644 --- a/Socket/CommunicationPolicy.cc +++ b/Socket/CommunicationPolicy.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 @@ -31,7 +31,7 @@ #include #include #include -#include "Utils/Exception.hh" +#include "../Utils/Exception.hh" #include "ServerSocketHandle.hh" //#include "CommunicationPolicy.mpp" @@ -45,8 +45,8 @@ prefix_ void senf::ConnectedCommunicationPolicy::do_listen(FileHandle handle, } prefix_ int senf::ConnectedCommunicationPolicy::do_accept(FileHandle handle, - struct sockaddr * addr, - unsigned len) + struct sockaddr * addr, + unsigned len) { int rv = -1; do { @@ -58,7 +58,7 @@ prefix_ int senf::ConnectedCommunicationPolicy::do_accept(FileHandle handle, case EINTR: break; default: - throw SystemException(errno); + SENF_THROW_SYSTEM_EXCEPTION("ConnectedCommunicationPolicy::do_accept failed."); } } while (rv<0); return rv; @@ -75,4 +75,6 @@ prefix_ int senf::ConnectedCommunicationPolicy::do_accept(FileHandle handle, // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: