X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FCommunicationPolicy.cc;h=3d67fb4903cfbd2d26a4534db5e126098d8d3c08;hb=74270969b7d3562a3ee3a0a32d3cc4ee476760f0;hp=eedc8fb4e9442ee63a1a8ee880f5aa8e69390a8e;hpb=8421c3a8da7485cb8781045494ecaab3ed84f403;p=senf.git diff --git a/Socket/CommunicationPolicy.cc b/Socket/CommunicationPolicy.cc index eedc8fb..3d67fb4 100644 --- a/Socket/CommunicationPolicy.cc +++ b/Socket/CommunicationPolicy.cc @@ -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); + throwErrno(); } } 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: