X-Git-Url: http://g0dil.de/git?p=senf.git;a=blobdiff_plain;f=senf%2FSocket%2FFileHandle.hh;fp=senf%2FSocket%2FFileHandle.hh;h=3d04db9603fcb7c11032bb2685f56146bb7c6e37;hp=b9abd4716b5473f3eac433e7e06e57e30cdeec5e;hb=728c6fbeb525a2b48b927ebf17cc06ca943583b2;hpb=23a1bdee20b3fb19bd442efed8aa73b2bf0d585a diff --git a/senf/Socket/FileHandle.hh b/senf/Socket/FileHandle.hh index b9abd47..3d04db9 100644 --- a/senf/Socket/FileHandle.hh +++ b/senf/Socket/FileHandle.hh @@ -135,7 +135,7 @@ namespace senf { bool readable() const; ///< Check, whether a read on the handle would not block ///< (ignoring blocking state) - bool waitReadable(senf::ClockService::clock_type timeout = -1) const; + bool waitReadable(senf::ClockService::clock_type timeout = senf::ClockService::clock_type(-1)) const; ///< Wait, until read on the handle would not block (ignoring ///< blocking state) /**< \param[in] timeout max time to wait, default is to wait @@ -144,7 +144,7 @@ namespace senf { timeout. */ bool writeable() const; ///< Check, whether a write on the handle would not block ///< (ignoring blocking state) - bool waitWriteable(senf::ClockService::clock_type timeout = -1) const; + bool waitWriteable(senf::ClockService::clock_type timeout = senf::ClockService::clock_type(-1)) const; ///< Wait, until a write on the handle would not block ///< (ignoring blocking state) /**< \param[in] timeout max time to wait, default is to wait @@ -153,7 +153,7 @@ namespace senf { timeout. */ bool oobReadable() const; ///< Check, whether a read of prioritized data on the handle ///< would not block (ignoring blocking state) - bool waitOOBReadable(senf::ClockService::clock_type timeout = -1) const; + bool waitOOBReadable(senf::ClockService::clock_type timeout = senf::ClockService::clock_type(-1)) const; ///< Wait, until read of prioritized data on the handle does ///< not block (ignoring blocking state) /**< \param[in] timeout max time to wait, default is to wait