Skip to main content

radar_server/
consts.rs

1/// The client will be listening on port 5555
2pub static CLIENT_PORT: &str = "5555";
3/// Control messages are sent on 5556
4pub static CONTROL_PORT: &str = "5556";
5/// The server broadcasts on 5557
6pub static RADAR_PORT: &str = "5557";
7/// The tcp address of the server, for the archiver to subscribe to
8pub static RADAR_ADDRESS: &str = "tcp://localhost:";
9/// Broadcast address
10pub static WORLD_ADDRESS: &str = "tcp://*:";
11/// The tcp address of the archiver, for the server to connect to for control packets
12pub static ARCHIVER_ADDRESS: &str = "tcp://localhost:";
13/// Data should be stored and sourced from XDG_DATA regardless of where the program is
14pub static DATA_ARCHIVE_DIR: &str = ".local/share/radar-server/";
15/// The chunk size for data stored in hdf5 files. Ideally this should match the amount of data in a single packet
16pub static DATA_CHUNK_SIZE:usize = 1024;
17/// How many seconds of data to store in each file, defaults to one day
18pub static ARCHIVE_FILE_CHUNK_SIZE:i64 = 24 * 60 *60;