diff options
author | Pixel <Pixel> | 2001-10-27 11:15:57 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-10-27 11:15:57 +0000 |
commit | 54e62a566c003363078aa5273a728c0a0657b3a0 (patch) | |
tree | 542f106033e7f702feaaba8672873e6244c8baf1 /include/Handle.h | |
parent | ec2ecbd35bea64c88ab783b06100edc65c418048 (diff) |
Reworking on it...
Diffstat (limited to 'include/Handle.h')
-rw-r--r-- | include/Handle.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/Handle.h b/include/Handle.h index cec51c7..0044fa6 100644 --- a/include/Handle.h +++ b/include/Handle.h @@ -31,6 +31,8 @@ class Handle : public Base { ssize_t read(void *buf, size_t count) throw (IOException); ssize_t write(const void *buf, size_t count) throw (IOException); bool IsClosed(void); + bool IsNonBlock(void); + void SetNonBlock(void); virtual bool CanRead() = 0; virtual bool CanWrite() = 0; virtual String GetName() = 0; @@ -39,7 +41,7 @@ class Handle : public Base { int GetHandle(); private: int h; - bool closed; + bool closed, nonblock; }; Handle & operator<<(Handle &, const String &); |