19#ifndef __XRD_CL_POLLER_BUILT_IN_HH__
20#define __XRD_CL_POLLER_BUILT_IN_HH__
101 time_t timeout = 60 );
113 time_t timeout = 60);
125 return !pPollerPool.empty();
143 void UnregisterFromPoller(
const Socket *socket);
153 static int GetNbPollerInit();
156 typedef std::map<int, XrdSys::IOEvents::Poller *> PollerMap;
158 typedef std::map<Socket *, void *> SocketMap;
159 typedef std::vector<XrdSys::IOEvents::Poller *> PollerPool;
161 SocketMap pSocketMap;
162 PollerMap pPollerMap;
163 PollerPool pPollerPool;
164 PollerPool::iterator pNext;
virtual bool AddSocket(Socket *socket, SocketHandler *handler)
virtual bool EnableReadNotification(Socket *socket, bool notify, time_t timeout=60)
virtual bool RemoveSocket(Socket *socket)
Remove the socket.
virtual bool Stop()
Stop polling.
virtual void ShutdownEvents(Socket *socket)
virtual bool EnableWriteNotification(Socket *socket, bool notify, time_t timeout=60)
virtual bool IsRegistered(Socket *socket)
Check whether the socket is registered with the poller.
virtual bool Finalize()
Finalize the poller.
virtual bool Initialize()
Initialize the poller.
PollerBuiltIn()
Constructor.
virtual bool IsRunning() const
Is the event loop running?
virtual bool Start()
Start polling.
Interface for socket pollers.