X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FFileHandle.cci;h=9de38d16723f15ce13b18323606290027f5cef7c;hb=c6fb7bc1210f26501d95064eb8e6399a881f884e;hp=09628f8b7970d06d5bf121544bbb8d3286f5ede3;hpb=b6acba899f44ba9422476022c775cef823fc9337;p=senf.git diff --git a/senf/Socket/FileHandle.cci b/senf/Socket/FileHandle.cci index 09628f8..9de38d1 100644 --- a/senf/Socket/FileHandle.cci +++ b/senf/Socket/FileHandle.cci @@ -77,7 +77,7 @@ prefix_ bool senf::FileBody::readable() prefix_ bool senf::FileBody::waitReadable(senf::ClockService::clock_type timeout) const { - return pollCheck(fd(), true, + return pollCheck(fd(), true, (timeout==-1?-1:senf::ClockService::in_milliseconds(timeout)) ); } @@ -90,7 +90,7 @@ prefix_ bool senf::FileBody::writeable() prefix_ bool senf::FileBody::waitWriteable(senf::ClockService::clock_type timeout) const { - return pollCheck(fd(), false, + return pollCheck(fd(), false, (timeout==-1?-1:senf::ClockService::in_milliseconds(timeout)) ); } @@ -103,7 +103,7 @@ prefix_ bool senf::FileBody::oobReadable() prefix_ bool senf::FileBody::waitOOBReadable(senf::ClockService::clock_type timeout) const { - return pollCheck(fd(), true, + return pollCheck(fd(), true, (timeout==-1?-1:senf::ClockService::in_milliseconds(timeout)), true); }