130 if (
sh->HasReadInterest())
mask |= 0x1;
131 if (
sh->HasWriteInterest())
mask |= 0x2;
139 if (
sh->HasReadInterest())
mask |= 0x1;
140 if (
sh->HasWriteInterest())
mask |= 0x2;
332 Info(
"Select",
"*** interrupt occured ***");
363 Info(
"Select",
"*** interrupt occured ***");
448 (
Long_t)(
now.GetNanoSec() -
ts.GetNanoSec()) / 1000000 ;
450 Info(
"GetActive",
"socket: %p: %s:%d did not show any activity"
451 " during the last %ld millisecs: deactivating",
452 xs,
xs->GetInetAddress().GetHostName(),
453 xs->GetInetAddress().GetPort(),
timeout);
485 if (sock ==
h->GetSocket())
504 list->Add(
h->GetSocket());
521 list->Add(
h->GetSocket());
long Longptr_t
Integer large enough to hold a pointer (platform-dependent)
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t mask
R__EXTERN TSystem * gSystem
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
virtual void SetInterest(Int_t mask)
Set interest mask to 'mask'.
void Remove() override
Remove file event handler from system file handler list.
void Add() override
Add file event handler to system file handler list.
void Clear(Option_t *option="") override
Remove all objects from the list.
void Add(TObject *obj) override
TObject * Remove(TObject *obj) override
Remove object from the list.
TObject * First() const override
Return the first object in the list. Returns 0 when list is empty.
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
virtual void Ready(TSocket *sock)
Emit signal when some socket is ready.
void SetReady(TSocket *sock)
Called by TSocketHandler::Notify() to signal which socket is ready to be read or written.
virtual void SetInterest(TSocket *sock, Int_t interest=kRead)
Set interest mask for socket sock to interest.
virtual void RemoveAll()
Remove all sockets from the monitor.
virtual void ActivateAll()
Activate all de-activated sockets.
TSocket * Select()
Return pointer to socket for which an event is waiting.
friend class TSocketHandler
virtual void Activate(TSocket *sock)
Activate a de-activated socket.
virtual void Add(TSocket *sock, Int_t interest=kRead)
Add socket to the monitor's active list.
Int_t GetActive(Long_t timeout=-1) const
Return number of sockets in the active list.
TMonitor(Bool_t mainloop=kTRUE)
Create a monitor object.
virtual ~TMonitor()
Cleanup the monitor object. Does not delete sockets being monitored.
virtual void DeActivateAll()
De-activate all activated sockets.
virtual void DeActivate(TSocket *sock)
De-activate a socket.
TList * GetListOfActives() const
Returns a list with all active sockets.
TList * GetListOfDeActives() const
Returns a list with all de-active sockets.
virtual void Remove(TSocket *sock)
Remove a socket from the monitor.
Bool_t IsActive(TSocket *s) const
Check if socket 's' is in the active list.
Int_t GetDeActive() const
Return number of sockets in the de-active list.
Mother of all ROOT objects.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
This is the ROOT implementation of the Qt object communication mechanism (see also http://www....
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Bool_t ReadNotify() override
Notify when something can be read from the descriptor associated with this handler.
TSocketHandler(TMonitor *m, TSocket *s, Int_t interest, Bool_t mainloop=kTRUE)
TSocket * GetSocket() const
Bool_t Notify() override
Notify when event occurred on descriptor associated with this handler.
Bool_t WriteNotify() override
Notify when something can be written to the descriptor associated with this handler.
virtual void InnerLoop()
Inner event loop.
virtual void AddTimer(TTimer *t)
Add timer to list of system timers.
virtual Int_t Select(TList *active, Long_t timeout)
Select on active file descriptors (called by TMonitor).
TTimeOutTimer(TMonitor *m, Long_t ms)
Bool_t Notify() override
This method must be overridden to handle object notification (the base implementation is no-op).
The TTimeStamp encapsulates seconds and ns since EPOCH.
Handles synchronous and a-synchronous timer events.