summaryrefslogtreecommitdiff
path: root/comm/Channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'comm/Channel.h')
-rw-r--r--comm/Channel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/comm/Channel.h b/comm/Channel.h
index 01a395f..acd55bf 100644
--- a/comm/Channel.h
+++ b/comm/Channel.h
@@ -58,7 +58,7 @@ inline operator int () const { return Fd; }
inline IvlFd& operator = (const IvlFd& fd) { Unuse (Fd); Fd = fd.Fd; Use (Fd); return *this; }
inline void Open (int fd) { Unuse (Fd); Use (Fd = fd); }
inline void Close () { Unuse (Fd); Fd = -1; }
-inline bool Opened () { return bool (Fd >= 0); }
+inline bool IsOpen () { return bool (Fd >= 0); }
inline int Read (byte* b, int n) { return read (Fd, (char*) b, n); }
inline int Write (byte* b, int n) { return write (Fd, (const char*) b, n); }
char* StrRepr (char* = StrReprBuf);
@@ -88,7 +88,7 @@ public:
~IvlChannel ();
inline void Open (int fd) { if (Fd < 0) Fd.Open (fd); }
-inline void Close () { if (Fd.Opened ()) Fd.Close (); }
+inline void Close () { if (Fd.IsOpen ()) Fd.Close (); }
inline IOMODE IOMode () const { return Mode; }
inline void SetMode (IOMODE io) { Mode = io; }
int Read (IvlMsgBuffer&);