X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FFileHandle.cc;h=687bde711b4c82d9a5e0069f0a7368e45f12a624;hb=0fff17bd2bcdbb1e91e216bf6e1bebc414713548;hp=4865ae6439580d672e2e81ce104f4942e45eceae;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/FileHandle.cc b/Socket/FileHandle.cc index 4865ae6..687bde7 100644 --- a/Socket/FileHandle.cc +++ b/Socket/FileHandle.cc @@ -36,30 +36,30 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// -prefix_ void satcom::lib::FileBody::v_close() +prefix_ void senf::FileBody::v_close() { if (::close(fd_) != 0) throw SystemException(errno); } -prefix_ void satcom::lib::FileBody::v_terminate() +prefix_ void senf::FileBody::v_terminate() { ::close(fd_); } -prefix_ bool satcom::lib::FileBody::v_eof() +prefix_ bool senf::FileBody::v_eof() const { return false; } -prefix_ bool satcom::lib::FileBody::v_valid() +prefix_ bool senf::FileBody::v_valid() const { return true; } -prefix_ bool satcom::lib::FileBody::blocking() +prefix_ bool senf::FileBody::blocking() const { int flags = ::fcntl(fd(),F_GETFL); @@ -67,7 +67,7 @@ prefix_ bool satcom::lib::FileBody::blocking() return ! (flags & O_NONBLOCK); } -prefix_ void satcom::lib::FileBody::blocking(bool status) +prefix_ void senf::FileBody::blocking(bool status) { int flags = ::fcntl(fd(),F_GETFL); if (flags < 0) throw SystemException(errno); @@ -76,7 +76,7 @@ prefix_ void satcom::lib::FileBody::blocking(bool status) if (::fcntl(fd(), F_SETFL, flags) < 0) throw SystemException(errno); } -prefix_ bool satcom::lib::FileBody::pollCheck(int fd, bool incoming, bool block) +prefix_ bool senf::FileBody::pollCheck(int fd, bool incoming, bool block) const { struct ::pollfd pfd; @@ -103,5 +103,5 @@ prefix_ bool satcom::lib::FileBody::pollCheck(int fd, bool incoming, bool block) // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: