X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FFileHandle.hh;h=3bbbb9b606783967bf06f95ae172b219c3620d0c;hb=05633cf2fb569dad4bf2118ec5203e61974b35f5;hp=3bc615551db44fef6e12fbaf7e287f760036406f;hpb=c18277256e8c1ab1cf050057b534dadfcbae19f2;p=senf.git diff --git a/Socket/FileHandle.hh b/Socket/FileHandle.hh index 3bc6155..3bbbb9b 100644 --- a/Socket/FileHandle.hh +++ b/Socket/FileHandle.hh @@ -20,6 +20,7 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + /** \mainpage The SENF Socket Library \section arch Overall Architecture @@ -33,6 +34,7 @@ // Custom includes #include // std::auto_ptr +#include "Utils/SafeBool.hh" //#include "FileHandle.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -44,6 +46,7 @@ namespace lib { /** \brief */ class FileHandle + : public SafeBool { public: /////////////////////////////////////////////////////////////////////////// @@ -77,8 +80,7 @@ namespace lib { bool eof() const; bool valid() const; - operator bool () const; - bool operator!() const; + bool boolean_test() const; int fd() const; @@ -99,6 +101,8 @@ namespace lib { FileBody::ptr body_; }; + int retrieve_filehandle(FileHandle handle); + }} ///////////////////////////////hh.e////////////////////////////////////////