generated from AfonsoCMSousa/CPP-Template
26 lines
511 B
C++
26 lines
511 B
C++
// include/telemetry.h
|
|
// Header for telemetry server and broadcasting functionality
|
|
#ifndef TELEMETRY_H
|
|
#define TELEMETRY_H
|
|
|
|
#include "server_structs.h"
|
|
|
|
#include <pthread.h>
|
|
#include <cstdio>
|
|
#include <algorithm>
|
|
#include <cmath>
|
|
#include <cstring>
|
|
#include <sys/socket.h>
|
|
#include <sys/un.h>
|
|
#include <unistd.h>
|
|
#include <vector>
|
|
|
|
|
|
#define TELEMETRY_SOCKET_PATH "/tmp/ACtelemetry_socket"
|
|
|
|
void *telemetry_server_thread(void *arg);
|
|
|
|
void broadcast_telemetry(const api_packet &packet);
|
|
|
|
#endif // TELEMETRY_H
|