hlit-mon
0.5.2
|
This class receives data from the broker. More...
#include <Subscriber.h>
Public Member Functions | |
Subscriber (char *addr_sub) | |
Subscriber () | |
pair< string, string > | Get_Cluster_Json () |
void | Recv_Message () |
void | Connect () |
void | Set_Addr (char *addr) |
This class receives data from the broker.
The class receives data from the broker and passes it out. The data are stored only until a new message is received.
Definition at line 23 of file Subscriber.h.
Subscriber::Subscriber | ( | char * | addr_sub | ) |
The constructor creates class 'Subscriber' with the specified address
[in] | addr_sub | Address of the broker |
Definition at line 3 of file Subscriber.cpp.
Subscriber::Subscriber | ( | ) |
The default constructor creates class 'Subscriber' with address 'tcp://localhost:5001'
Definition at line 8 of file Subscriber.cpp.
void Subscriber::Connect | ( | ) |
Connects to the broker.
Definition at line 19 of file Subscriber.cpp.
pair< string, string > Subscriber::Get_Cluster_Json | ( | ) |
Returns broker information about the cluster.
Definition at line 46 of file Subscriber.cpp.
void Subscriber::Recv_Message | ( | ) |
Waiting for a message from broker.
Definition at line 30 of file Subscriber.cpp.
void Subscriber::Set_Addr | ( | char * | addr | ) |
Sets address of broker
[in] | addr | Address of the broker |
Definition at line 25 of file Subscriber.cpp.