diff options
author | sc | 2000-12-30 23:32:23 +0000 |
---|---|---|
committer | sc | 2000-12-30 23:32:23 +0000 |
commit | 56ceb9fca7d983b0ad187a68d1ede42f79b101c6 (patch) | |
tree | a221db06ade79ceb74f777640f7008a513db35e0 /comm/Channel.h | |
parent | 13fffb63934984327e3daca40167a594351f140f (diff) | |
download | ivy-league-master.zip ivy-league-master.tar.gz ivy-league-master.tar.bz2 ivy-league-master.tar.xz |
Diffstat (limited to 'comm/Channel.h')
-rw-r--r-- | comm/Channel.h | 4 |
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&); |