|
XRootD
|
Interface for socket pollers. More...
#include <XrdClPoller.hh>
Inheritance diagram for XrdCl::Poller:
Collaboration diagram for XrdCl::Poller:Public Member Functions | |
| virtual | ~Poller () |
| Destructor. More... | |
| virtual bool | AddSocket (Socket *socket, SocketHandler *handler)=0 |
| virtual bool | EnableReadNotification (Socket *socket, bool notify, time_t timeout=60)=0 |
| virtual bool | EnableWriteNotification (Socket *socket, bool notify, time_t timeout=60)=0 |
| virtual bool | Finalize ()=0 |
| Finalize the poller. More... | |
| virtual bool | Initialize ()=0 |
| Initialize the poller. More... | |
| virtual bool | IsRegistered (Socket *socket)=0 |
| Check whether the socket is registered with the poller. More... | |
| virtual bool | IsRunning () const =0 |
| Is the event loop running? More... | |
| virtual bool | RemoveSocket (Socket *socket)=0 |
| virtual void | ShutdownEvents (Socket *socket)=0 |
| virtual bool | Start ()=0 |
| Start polling. More... | |
| virtual bool | Stop ()=0 |
| Stop polling. More... | |
Interface for socket pollers.
Definition at line 87 of file XrdClPoller.hh.
|
inlinevirtual |
|
pure virtual |
Add socket to the polling loop
| socket | the socket |
| handler | object handling the events |
Implemented in XrdCl::PollerBuiltIn.
Referenced by XrdCl::AsyncSocketHandler::Connect().
Here is the caller graph for this function:
|
pure virtual |
Notify the handler about read events
| socket | the socket |
| notify | specify if the handler should be notified |
| timeout | if no read event occurred after this time a timeout event will be generated |
Implemented in XrdCl::PollerBuiltIn.
Referenced by XrdCl::AsyncSocketHandler::OnConnectionReturn().
Here is the caller graph for this function:
|
pure virtual |
Notify the handler about write events
| socket | the socket |
| notify | specify if the handler should be notified |
| timeout | if no write event occurred after this time a timeout event will be generated |
Implemented in XrdCl::PollerBuiltIn.
Referenced by XrdCl::AsyncSocketHandler::Connect(), XrdCl::AsyncSocketHandler::DisableUplink(), and XrdCl::AsyncSocketHandler::EnableUplink().
Here is the caller graph for this function:
|
pure virtual |
Finalize the poller.
Implemented in XrdCl::PollerBuiltIn.
|
pure virtual |
Initialize the poller.
Implemented in XrdCl::PollerBuiltIn.
|
pure virtual |
Check whether the socket is registered with the poller.
Implemented in XrdCl::PollerBuiltIn.
|
pure virtual |
Is the event loop running?
Implemented in XrdCl::PollerBuiltIn.
|
pure virtual |
Remove the socket. Depending on the implementation this may block until the socket's poller event dispatch loop can finish dispatching all its currently queued events, which can include sockets for any channel. ShutdownEvents() may be used to have no more callbacks on the given socket, with fewer blocking conditions.
Implemented in XrdCl::PollerBuiltIn.
Referenced by XrdCl::AsyncSocketHandler::Close(), and XrdCl::AsyncSocketHandler::Connect().
Here is the caller graph for this function:
|
pure virtual |
Disables further callbacks to the socket's event handler. If callback is currently running wait for it, unless it is the current thread.
Implemented in XrdCl::PollerBuiltIn.
Referenced by XrdCl::AsyncSocketHandler::PreClose().
Here is the caller graph for this function:
|
pure virtual |
Start polling.
Implemented in XrdCl::PollerBuiltIn.
|
pure virtual |
Stop polling.
Implemented in XrdCl::PollerBuiltIn.