almost works as I need

This commit is contained in:
2026-09-25 15:00:34 +03:00
parent 8e796ce419
commit 30b7c9bc9e
11 changed files with 475 additions and 93 deletions

View File

@@ -27,8 +27,10 @@
// maximal amount of connected clients
#define DEFAULT_MAXCLIENTS 5
// status checking interval, seconds
#define MOUNT_CHECK_T 10.
// try to reconnect each RECONN seconds
#define MOUNT_RECONNECT_T 60.
// max weather lost time
#define MOUNT_WEATHER_ALRM 900.
typedef struct{
int cmd_isunix; // UNIX-socket instead of INET for `cmdnode`
@@ -37,6 +39,8 @@ typedef struct{
int maxclients; // maximal amount of clients connected
} server_sock_t;
extern volatile bool isrunning;
bool server_check(server_sock_t *sockt);
void server_run();
void server_stop();