From 56ceb9fca7d983b0ad187a68d1ede42f79b101c6 Mon Sep 17 00:00:00 2001 From: sc Date: Sat, 30 Dec 2000 23:32:23 +0000 Subject: Opened -> IsOpen --- comm/Channel.cc | 2 +- comm/Channel.h | 4 ++-- 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&); -- cgit v1.1