cyfs_base/base/
ports.rs

1// service的端口分配 [1300-1400]
2pub const CHUNK_MANAGER_PORT: u16 = 1310;
3
4pub const FILE_MANAGER_PORT: u16 = 1312;
5
6pub const ACC_SERVICE_PORT: u16 = 1313;
7
8pub const GATEWAY_CONTROL_PORT: u16 = 1314;
9
10// non-stack本地提供的默认object http服务端口
11pub const NON_STACK_HTTP_PORT: u16 = 1318;
12
13// non-stack的本地web-socket服务端口
14// TODO 目前tide+async_h1还不支持websocket协议,所以只能使用独立端口
15pub const NON_STACK_WS_PORT: u16 = 1319;
16
17// ood-daemon的控制接口
18pub const OOD_DAEMON_CONTROL_PORT: u16 = 1320;
19
20// cyfs-runtime的device控制接口,和ood-daemon控制协议一致
21pub const CYFS_RUNTIME_DAEMON_CONTROL_PORT: u16 = 1321;
22
23// ood-installer的device控制接口,和ood-daemon控制协议一致
24pub const OOD_INSTALLER_CONTROL_PORT: u16 = 1325;
25
26// non-stack本地提供的默认object http服务端口
27pub const CYFS_RUNTIME_NON_STACK_HTTP_PORT: u16 = 1322;
28
29// non-stack的本地web-socket服务端口
30// TODO 目前tide+async_h1还不支持websocket协议,所以只能使用独立端口
31pub const CYFS_RUNTIME_NON_STACK_WS_PORT: u16 = 1323;
32
33// ood-daemon's local status service port
34pub const OOD_DAEMON_LOCAL_STATUS_PORT: u16 = 1330;
35
36// cyfs-backup tool http service port
37pub const OOD_BACKUP_TOOL_SERVICE_PORT: u16 = 1331;
38
39// bdt协议栈的默认绑定端口
40pub const OOD_BDT_STACK_PORT: u16 = 8050;
41pub const CYFS_RUNTIME_BDT_STACK_PORT: u16 = 8051;
42
43// non-stack提供对外服务的bdt协议栈虚端口
44pub const NON_STACK_BDT_VPORT: u16 = 84;
45
46// non-stack提供对外服务的sync协议栈虚端口
47pub const NON_STACK_SYNC_BDT_VPORT: u16 = 85;
48
49// app的端口分配 [1400-1500]
50pub const PROXY_MINER_SOCKS5_PORT: u16 = 1421;
51
52pub const IP_RELAY_MINER_PORT: u16 = 1422;
53
54pub const CYFS_META_MINER_PORT: u16 = 1423;
55
56pub const CACHE_MINER_PORT: u16 = 1424;
57
58pub const DNS_PROXY_MINER_PORT: u16 = 1425;
59
60pub const ALWAYS_RUN_MINER_PORT: u16 = 1426;
61
62pub const DSG_CHAIN_MINER_PORT: u16 = 1427;