updated docs
[rlserver.git] / server.h
blob6e6bad78daf7cc089c388a41dd2c2f25e4193a0a
1 #ifndef __SERVER__
2 #define __SERVER__
4 #include <stdint.h>
5 #include "sessions.h"
7 #define CONFIG_LEN 128
8 typedef struct
10 // command for external editor
11 char editor[CONFIG_LEN];
13 // port to listen
14 uint16_t port;
15 // how many pending connections queue will hold
16 uint16_t backlog;
18 // grace time in seconds before sending SIGTERM to game whose player disonnected
19 uint16_t delay_before_kill;
21 // user/group to set after init is done
22 int uid, gid;
24 // file name to save game stats
25 char game_stat_file[CONFIG_LEN];
26 // file name to save game session logs
27 char game_log_file[CONFIG_LEN];
28 } server_config;
30 int main_menu (session_info *sess);
33 #endif