ZeroEQ  0.9.0
ZeroEQ - Zero Event Queue
zeroeq::Monitor Class Reference

Monitors a Sender and notifies on events on its socket. More...

#include <monitor.h>

+ Inheritance diagram for zeroeq::Monitor:
+ Collaboration diagram for zeroeq::Monitor:

Public Member Functions

 Monitor (Sender &sender)
 Monitor the given sender. More...
 
 Monitor (Sender &sender, Receiver &shared)
 Monitor the given sender and notify with the given shared group. More...
 
 ~Monitor ()
 Destroy this monitor.
 
virtual void notifyNewConnection ()
 Notify of a new connection to the sender. More...
 
- Public Member Functions inherited from zeroeq::Receiver
 Receiver ()
 Create a new standalone receiver. More...
 
 Receiver (Receiver &shared)
 Create a shared receiver. More...
 
 Receiver (Receiver &&)
 
Receiveroperator= (Receiver &&)
 
bool receive (const uint32_t timeout=TIMEOUT_INDEFINITE)
 Receive at least one event from all shared receivers. More...
 

Additional Inherited Members

- Protected Member Functions inherited from zeroeq::Receiver
virtual void addSockets (std::vector< detail::Socket > &entries)=0
 Add this receiver's sockets to the given list.
 
virtual bool process (detail::Socket &socket)=0
 Process data on a signalled socket. More...
 
virtual void update ()
 Update the internal connection list. More...
 
virtual void addConnection (const std::string &uri)
 Add the given connection to the list of receiving sockets. More...
 

Detailed Description

Monitors a Sender and notifies on events on its socket.

Warning
: Installing multiple monitors on a single Sender has undefined behaviour.

Definition at line 18 of file monitor.h.

Constructor & Destructor Documentation

zeroeq::Monitor::Monitor ( Sender sender)
explicit

Monitor the given sender.

Referenced by notifyNewConnection().

+ Here is the caller graph for this function:

zeroeq::Monitor::Monitor ( Sender sender,
Receiver shared 
)

Monitor the given sender and notify with the given shared group.

Member Function Documentation

virtual void zeroeq::Monitor::notifyNewConnection ( )
inlinevirtual

Notify of a new connection to the sender.

Definition at line 31 of file monitor.h.

References Monitor().

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: