Interacts with RTC service.
#include <rtcClient.h>
|
| RtcClient (std::string &ip, int dport, int sport) |
| Constructor of the class. More...
|
|
| ~RtcClient () |
| Destructor of the class.
|
|
void | asyncSetSyncTime (std::uint32_t time_s, dpyRtc::result_handler handler) |
| Method to set synchronism time period in seconds. More...
|
|
void | asyncSetDiffTime (std::uint32_t time_s, dpyRtc::result_handler handler) |
| Method to set maximum time in seconds allowed to RTC to be drifted from UTC valid time. More...
|
|
void | asyncGetConfigValues (dpyRtc::params_handler handler) |
| Method to get configuration parameters coming from RTC service. More...
|
|
void | asyncGetDateTime (dpyRtc::time_and_date_handler handler) |
| Method to get date and time coming from RTC service. More...
|
|
void | asyncGetDateTime (dpyRtc::time_date_set_handler handler) |
| Method to get date and time coming from RTC service. More...
|
|
void | asyncGetSources (dpyRtc::sources_list_handler handler) |
| Method used to get a sources list. More...
|
|
void | performDateSourceOperation (const SOURCE_OPERATION oper, const std::string &source_name, const dpyRtc::DateSources &source, dpyRtc::result_handler handler) |
| Method used to perform different date source operations. More...
|
|
| DpyMwClient (std::string &ip, int dport, int sport) |
|
void | start () |
|
void | stop () |
|
void | subscribe (int messageType, boost::any handler) |
|
void | unsubscribe (int messageType) |
|
bool | isAlive () |
|
void | monitorServiceAvailability_S (const f_hearbeat_handler &handler) |
|
void | monitorServiceAvailability_U () |
|
Enumerator |
---|
ADD_SOURCE |
ADD_SOURCE.
|
REMOVE_SOURCE |
REMOVE_SOURCE.
|
CHANGE_SOURCE |
CHANGE_SOURCE.
|
RtcClient |
( |
std::string & |
ip, |
|
|
int |
dport, |
|
|
int |
sport |
|
) |
| |
- Parameters
-
ip | IP address to be binded to the client |
dport | Port to use by dealer |
sport | to use by subscriber |
- Parameters
-
handler | Handler used to get response |
- Parameters
-
handler | Handler used to get response |
- Parameters
-
handler | Handler used to get response |
- Parameters
-
handler | Handler to be called when a response comes from the service |
- Parameters
-
time_s | Time provided in seconds |
handler | Handler used to get response |
- Parameters
-
time_s | Time provided in seconds |
handler | Handler used to get response |
- Parameters
-
oper | type of operation |
source_name | source name that will be used for the operation |
source | date source that will be passed depending on the operation |
handler | is the function that will be called when the response to the command arrives |