summaryrefslogtreecommitdiff
path: root/include/Handle.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Handle.h')
-rw-r--r--include/Handle.h4
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 &);