diff options
author | Pixel <Pixel> | 2001-10-29 15:44:12 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-10-29 15:44:12 +0000 |
commit | 2e5bed84841f33ff28dd95b77b555720c875a286 (patch) | |
tree | de6cbcbf5fa65e90e1888d52a9426373a1638c61 /include/Handle.h | |
parent | 0a6190d0269392e875a479df01b152d47ea4143c (diff) |
Beginning task manager
Diffstat (limited to 'include/Handle.h')
-rw-r--r-- | include/Handle.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/Handle.h b/include/Handle.h index 0044fa6..3cb16f1 100644 --- a/include/Handle.h +++ b/include/Handle.h @@ -28,8 +28,8 @@ class Handle : public Base { public: Handle(const Handle &); virtual ~Handle(); - ssize_t read(void *buf, size_t count) throw (IOException); - ssize_t write(const void *buf, size_t count) throw (IOException); + virtual ssize_t read(void *buf, size_t count) throw (IOException); + virtual ssize_t write(const void *buf, size_t count) throw (IOException); bool IsClosed(void); bool IsNonBlock(void); void SetNonBlock(void); @@ -39,6 +39,7 @@ class Handle : public Base { protected: Handle(int h); int GetHandle(); + void close(); private: int h; bool closed, nonblock; |