summaryrefslogtreecommitdiff
path: root/include/Handle.h
diff options
context:
space:
mode:
authorPixel <Pixel>2001-10-29 15:44:12 +0000
committerPixel <Pixel>2001-10-29 15:44:12 +0000
commit2e5bed84841f33ff28dd95b77b555720c875a286 (patch)
treede6cbcbf5fa65e90e1888d52a9426373a1638c61 /include/Handle.h
parent0a6190d0269392e875a479df01b152d47ea4143c (diff)
Beginning task manager
Diffstat (limited to 'include/Handle.h')
-rw-r--r--include/Handle.h5
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;