|
MCSB
2.0.0
High-throughput shared memory middleware
|
A simple watcher class for using an MCSB Client with libev. More...
#include <MCSB/ClientWatcher.h>
Public Member Functions | |
| ClientWatcher (Client &client, ev::loop_ref loop=0, float period=1.) | |
A simple watcher class for using an MCSB Client with libev.
A ClientWatcher watches a Client and calls Client::Poll() as needed. If the Client is connected, ClientWatcher will watch its file descriptor and call Poll whenever it is readable. If the Client is not connected, ClientWatcher will periodically call Poll, which will attempt to reconnect the Client to the Manager.
| MCSB::ClientWatcher::ClientWatcher | ( | Client & | client, |
| ev::loop_ref | loop = 0, |
||
| float | period = 1. |
||
| ) |
1.8.5