ng_net/
lib.rs

1/*
2 * Copyright (c) 2022-2025 Niko Bonnieure, Par le Peuple, NextGraph.org developers
3 * All rights reserved.
4 * Licensed under the Apache License, Version 2.0
5 * <LICENSE-APACHE2 or http://www.apache.org/licenses/LICENSE-2.0>
6 * or the MIT license <LICENSE-MIT or http://opensource.org/licenses/MIT>,
7 * at your option. All files in the project carrying such
8 * notice may not be copied, modified, or distributed except
9 * according to those terms.
10*/
11
12pub mod types;
13
14#[doc(hidden)]
15pub mod app_protocol;
16
17pub mod broker;
18
19pub mod server_broker;
20
21#[doc(hidden)]
22pub mod connection;
23
24pub mod actor;
25
26pub mod actors;
27
28pub mod utils;
29
30#[doc(hidden)]
31pub mod tests;
32
33#[doc(hidden)]
34pub mod bsps;
35
36#[doc(hidden)]
37pub static NG_BOOTSTRAP_LOCAL_PATH: &str = "/.ng_bootstrap";
38
39#[cfg(debug_assertions)]
40#[doc(hidden)]
41pub static WS_PORT: u16 = 14400;
42
43#[cfg(not(debug_assertions))]
44#[doc(hidden)]
45pub static WS_PORT: u16 = 80;
46
47#[doc(hidden)]
48pub static WS_PORT_ALTERNATE: [u16; 4] = [14400, 28800, 43200, 57600];
49
50#[doc(hidden)]
51pub static WS_PORT_ALTERNATE_SUPERUSER: u16 = 144;
52
53#[doc(hidden)]
54pub static WS_PORT_REVERSE_PROXY: u16 = 1440;