summaryrefslogtreecommitdiff
path: root/comm
diff options
context:
space:
mode:
authorchatty1993-07-27 14:01:54 +0000
committerchatty1993-07-27 14:01:54 +0000
commit9b053fc3871b44405f558b84d031346e46d734f1 (patch)
treee55226eb72f6a46389e1bb09e4e9b3144739d8c5 /comm
parent412fd9f7ce0f34a24f9cc2ffc36d3f670b8ad135 (diff)
downloadivy-league-9b053fc3871b44405f558b84d031346e46d734f1.zip
ivy-league-9b053fc3871b44405f558b84d031346e46d734f1.tar.gz
ivy-league-9b053fc3871b44405f558b84d031346e46d734f1.tar.bz2
ivy-league-9b053fc3871b44405f558b84d031346e46d734f1.tar.xz
Added member Mpx
Renamed Add/RemoveNotify and made them non-virtual
Diffstat (limited to 'comm')
-rw-r--r--comm/Channel.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/comm/Channel.h b/comm/Channel.h
index 24ea7e3..1e1e538 100644
--- a/comm/Channel.h
+++ b/comm/Channel.h
@@ -68,16 +68,16 @@ inline int Write (byte* b, int n) { return write (Fd, (const char*) b, n); }
//
class UchChannel;
typedef void (* CH_HANDLER) (UchChannel *);
-class UchMultiplexer;
class UchChannel : public CcuSmartData {
-friend class UchMultiplexer;
+friend class UchBaseMultiplexer;
protected:
UchFilDes Fd;
IOMODE Mode;
+ UchBaseMultiplexer* Mpx;
-virtual void AddNotify (UchMultiplexer&);
-virtual void RemoveNotify (UchMultiplexer&);
+virtual void Added (UchBaseMultiplexer&);
+virtual void Removed (UchBaseMultiplexer&);
public:
UchChannel ();
@@ -102,6 +102,7 @@ inline int FilDes () const { return Fd; }
inline int Read (byte* b, int n) { return read (FilDes (), (char*) b, n); }
inline int Write (byte* b, int n) { return write (FilDes (), (const char*) b, n); }
inline operator int () { return Fd; }
+inline UchBaseMultiplexer* GetMultiplexer () const { return Mpx; }
inline char* StrRepr (char* s = StrReprBuf) { return Fd.StrRepr (s); }
static CH_HANDLER ReadHandler;