X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FFileHandle.cci;h=bb366baac24badd919b9dbea8b69f0877459e674;hb=b2d64a4084a053f0887c7845bb81074e0cd3a855;hp=f633fdfcc8ffc7619e7541f745c5f6f643238eae;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/FileHandle.cci b/Socket/FileHandle.cci index f633fdf..bb366ba 100644 --- a/Socket/FileHandle.cci +++ b/Socket/FileHandle.cci @@ -172,18 +172,12 @@ prefix_ bool satcom::lib::FileHandle::valid() return body().valid(); } -prefix_ satcom::lib::FileHandle::operator bool () +prefix_ bool satcom::lib::FileHandle::boolean_test() const { return valid() && !eof(); } -prefix_ bool satcom::lib::FileHandle::operator!() - const -{ - return ! (valid() && !eof()); -} - prefix_ int satcom::lib::FileHandle::fd() const { @@ -233,6 +227,11 @@ satcom::lib::FileHandle::cast_dynamic(FileHandle handle) return handle; } +prefix_ int satcom::lib::retrieve_filehandle(FileHandle handle) +{ + return handle.fd(); +} + ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_