mirror of
https://github.com/eddyem/small_tel.git
synced 2026-09-29 21:30:41 +03:00
almost works as I need
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user