![]() |
TSDuck v3.43-4480
MPEG Transport Stream Toolkit
|
Asynchronously send requests to an InfluxDB server. More...
#include <tsInfluxSender.h>


Public Member Functions | |
| InfluxSender (Report &report) | |
| Constructor. | |
| bool | send (InfluxRequestPtr &request) |
| Asynchronously send an InfluxDB request. | |
| bool | start (const InfluxArgs &args) |
| Start the asynchronous sender. | |
| void | stop () |
| Stop the asynchronous sender. | |
Private Member Functions | |
| bool | start () |
| Start the thread. | |
Asynchronously send requests to an InfluxDB server.
We cannot anticipate the response time of the server. Using a thread avoid slowing down the packet transmission.
| ts::InfluxSender::InfluxSender | ( | Report & | report | ) |
Constructor.
| [in,out] | report | Where to report errors. A reference is internally kept in the object. |
| bool ts::InfluxSender::start | ( | const InfluxArgs & | args | ) |
Start the asynchronous sender.
| [in] | args | Connection parameters to the InfluxDB server. |
| void ts::InfluxSender::stop | ( | ) |
Stop the asynchronous sender.
Wait for the internal thread to terminate.
| bool ts::InfluxSender::send | ( | InfluxRequestPtr & | request | ) |
Asynchronously send an InfluxDB request.
| [in,out] | request | Smart pointer to the request. The ownership of the pointer is transfered to the asynchronous sender. The parameter is nullified on return. |