AsyncFw
1.2
Async Framework is c++ runtime with timers, poll notifiers, sockets, coroutines, etc.
Loading...
Searching...
No Matches
RrdClient.h
1
/*
2
Copyright (c) 2026 Alexandr Kuzmuk
3
4
This file is part of the AsyncFw project. Licensed under the MIT License.
5
See {Link: LICENSE file https://mit-license.org} in the project root for full license information.
6
*/
7
8
#pragma once
9
10
#include "../core/FunctionConnector.h"
11
12
namespace
AsyncFw {
13
class
Rrd
;
14
class
DataArray
;
15
class
TlsContext
;
16
class
DataArraySocket
;
17
19
class
RrdClient {
20
public
:
21
RrdClient(
DataArraySocket
*,
const
std::vector<Rrd *> &);
22
~RrdClient();
23
void
clear(
int
);
24
25
void
connectToHost(
const
std::string &, uint16_t);
26
void
connectToHost();
27
void
disconnectFromHost();
28
int
transmit(
const
DataArray
&, uint32_t,
bool
=
false
);
29
30
void
tlsSetup(
const
TlsContext
&);
31
void
disableTls();
32
33
private
:
34
std::vector<Rrd *> rrd_;
35
DataArraySocket
*tcpSocket;
36
int
requestTimerId;
37
std::vector<uint64_t> lastTime;
38
void
tcpReadWrite(
const
DataArray
*, uint32_t);
39
void
request(
int
);
40
FunctionConnectionGuardList gl_;
41
};
42
}
// namespace AsyncFw
AsyncFw::DataArraySocket
The DataArraySocket class.
Definition
DataArraySocket.h:17
AsyncFw::DataArray
The DataArray class.
Definition
DataArray.h:20
AsyncFw::Rrd
The Rrd class.
Definition
Rrd.h:16
AsyncFw::TlsContext
The TlsContext class provides functionality for managing TLS certificates.
Definition
TlsContext.h:24
main
RrdClient.h
Generated by
1.13.2