diff options
author | chatty | 1993-07-27 14:02:13 +0000 |
---|---|---|
committer | chatty | 1993-07-27 14:02:13 +0000 |
commit | 618df147e19d12075f351930d6bf85e9b171c99c (patch) | |
tree | 03b308ed0d9dca857732ffeba66d22805bd1ca0c /comm/XtMultiplexer.h | |
parent | 9b053fc3871b44405f558b84d031346e46d734f1 (diff) | |
download | ivy-league-618df147e19d12075f351930d6bf85e9b171c99c.zip ivy-league-618df147e19d12075f351930d6bf85e9b171c99c.tar.gz ivy-league-618df147e19d12075f351930d6bf85e9b171c99c.tar.bz2 ivy-league-618df147e19d12075f351930d6bf85e9b171c99c.tar.xz |
Initial revision
Diffstat (limited to 'comm/XtMultiplexer.h')
-rw-r--r-- | comm/XtMultiplexer.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/comm/XtMultiplexer.h b/comm/XtMultiplexer.h new file mode 100644 index 0000000..164a296 --- /dev/null +++ b/comm/XtMultiplexer.h @@ -0,0 +1,47 @@ +/* + * The Unix Channel + * + * by Michel Beaudouin-Lafon and Stephane Chatty + * + * Copyright 1990-1993 + * Laboratoire de Recherche en Informatique (LRI) + * Centre d'Etudes de la Navigation Aerienne + * + * Xt-based multiplexers + * + * $Id$ + * $CurLog$ + */ + +#ifndef XtMultiplexer_H_ +#define XtMultiplexer_H_ + +#include "Multiplexer.h" + +/*** Intrinsic.h redefines TRUE and FALSE if FALSE is undefined... */ +#define FALSE 0 +#include <X11/Intrinsic.h> +#undef FALSE + +class UchXtMultiplexer : public UchBaseMultiplexer { +private: +static void FireSignals (void*); +static void FireTimers (void*, XtIntervalId*); + +protected: + XtInputId ReadId [NFILE]; + XtInputId WriteId [NFILE]; + XtIntervalId TimeOut; + + void SetMasks (int, IOMODE); + void SetTimeOut (Millisecond); + void SuppressTimeOut (); + void AddSignalHook (); + MPX_RES Loop (); + +public: + UchXtMultiplexer (); + ~UchXtMultiplexer (); +}; + +#endif /* XtMultiplexer_H_ */ |