X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FFileHandle.ih;h=b13f2feac59ebd4913ed69055232388e8c8128cd;hb=81f84badf27b66dbadec9890646ca1193e998505;hp=84df70c79e1dcf072524ce15bbd29d5dd2887ac2;hpb=10985d71f77b627bc4da543d7114feb7c4529329;p=senf.git diff --git a/Socket/FileHandle.ih b/Socket/FileHandle.ih index 84df70c..b13f2fe 100644 --- a/Socket/FileHandle.ih +++ b/Socket/FileHandle.ih @@ -24,8 +24,8 @@ \brief FileHandle internal header */ -#ifndef IH_FileHandle_ -#define IH_FileHandle_ 1 +#ifndef IH_SENF_Socket_FileHandle_ +#define IH_SENF_Socket_FileHandle_ 1 // Custom includes #include @@ -105,9 +105,11 @@ namespace senf { void destroyClose(); bool readable() const; - void waitReadable() const; + bool waitReadable(senf::ClockService::clock_type timeout) const; bool writeable() const; - void waitWriteable() const; + bool waitWriteable(senf::ClockService::clock_type timeout) const; + bool oobReadable() const; + bool waitOOBReadable(senf::ClockService::clock_type timeout) const; bool blocking() const; void blocking(bool status); @@ -140,7 +142,7 @@ namespace senf { protected: private: - bool pollCheck(int fd, bool incoming, bool block=false) const; + bool pollCheck(int fd, bool incoming, int timeout, bool oob=false) const; int fd_; };