diff options
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; |