#ifndef ROOT_TMonitor
#define ROOT_TMonitor
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TQObject
#include "TQObject.h"
#endif
class TList;
class TSocket;
class TMonitor : public TObject , public TQObject {
friend class TSocketHandler;
friend class TTimeOutTimer;
friend class TXSlave;
friend class TXSocket;
private:
TList *fActive;
TList *fDeActive;
TSocket *fReady;
Bool_t fMainLoop;
Bool_t fInterrupt;
void SetReady(TSocket *sock);
void *GetSender() { return this; }
public:
enum EInterest { kRead = 1, kWrite = 2 };
TMonitor(Bool_t mainloop = kTRUE);
TMonitor(const TMonitor &m);
virtual ~TMonitor();
virtual void Add(TSocket *sock, Int_t interest = kRead);
virtual void SetInterest(TSocket *sock, Int_t interest = kRead);
virtual void Remove(TSocket *sock);
virtual void RemoveAll();
virtual void Activate(TSocket *sock);
virtual void ActivateAll();
virtual void DeActivate(TSocket *sock);
virtual void DeActivateAll();
virtual void Ready(TSocket *sock);
void Interrupt() { fInterrupt = kTRUE; }
TSocket *Select();
TSocket *Select(Long_t timeout);
Int_t Select(TList *rdready, TList *wrready, Long_t timeout);
Int_t GetActive(Long_t timeout = -1) const;
Int_t GetDeActive() const;
TList *GetListOfActives() const;
TList *GetListOfDeActives() const;
Bool_t IsActive(TSocket *s) const;
ClassDef(TMonitor,0)
};
#endif
Last change: Fri Nov 21 17:20:39 2008
Last generated: 2008-11-21 17:20
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.