⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.94
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
src
/
netdata
/
src
/
aclk
/
schema-wrappers
/
View File Name :
connection.h
// SPDX-License-Identifier: GPL-3.0-or-later #ifndef ACLK_SCHEMA_WRAPPER_CONNECTION_H #define ACLK_SCHEMA_WRAPPER_CONNECTION_H #include "capability.h" #ifdef __cplusplus extern "C" { #endif typedef struct { const char *claim_id; unsigned int reachable:1; int64_t session_id; unsigned int lwt:1; const struct capability *capabilities; // TODO in future optional fields // > 15 optional fields: // How long the system was running until connection (only applicable when reachable=true) // google.protobuf.Duration system_uptime = 15; // How long the netdata agent was running until connection (only applicable when reachable=true) // google.protobuf.Duration agent_uptime = 16; } update_agent_connection_t; char *generate_update_agent_connection(size_t *len, const update_agent_connection_t *data); struct disconnect_cmd { uint64_t reconnect_after_s; int permaban; uint32_t error_code; char *error_description; }; struct disconnect_cmd *parse_disconnect_cmd(const char *data, size_t len); #ifdef __cplusplus } #endif #endif /* ACLK_SCHEMA_WRAPPER_CONNECTION_H */