fix: fixed ANOTHER issue with net.cpp

This commit is contained in:
AfonsoCMSousa
2026-01-07 22:10:14 +00:00
parent 5e7aa014fc
commit dc071a2fc9
6 changed files with 24 additions and 15 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef APP_CONFIG_HPP
#define APP_CONFIG_HPP
#include <string>
#include <cstdint>
struct app_info {
// From args
uint16_t app_id;
uint16_t app_port_in;
uint16_t app_port_out;
// From .env
std::string app_api_socket_path;
uint16_t max_players;
std::string app_server_out_ip;
};
#endif
+1
View File
@@ -8,6 +8,7 @@
#include <stdexcept>
#include <map>
#include "app.hpp"
#include "server_structs.h"
using namespace std;
-12
View File
@@ -4,18 +4,6 @@
#include <sys/cdefs.h>
#include <sys/types.h>
typedef struct app_info {
// From args
u_int16_t app_id;
u_int16_t app_port_in;
u_int16_t app_port_out;
// From .env
const char *app_api_socket_path;
u_int16_t max_players;
const char *app_server_out_ip;
} __attribute__((packed)) app_info;
typedef struct handshake {
// [not used in the current Remote Telemtry version by AC]
// In future versions it will identify the platform type of the client.