summaryrefslogtreecommitdiff
path: root/comm
diff options
context:
space:
mode:
Diffstat (limited to 'comm')
-rw-r--r--comm/Channel.cc2
-rw-r--r--comm/Channel.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/comm/Channel.cc b/comm/Channel.cc
index f233e00..81290bb 100644
--- a/comm/Channel.cc
+++ b/comm/Channel.cc
@@ -125,7 +125,7 @@ IvlFd :: Close ()
Return true if the object is opened, false else.
?*/
bool
-IvlFd :: Opened ()
+IvlFd :: IsOpen ()
{ }
/*?
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&);