Browse Source

Use readable port number

tags/v0.3.7rc0
haixuanTao 1 year ago
parent
commit
e88aba4053
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libraries/core/src/topics.rs

+ 3
- 3
libraries/core/src/topics.rs View File

@@ -1,8 +1,8 @@
use std::net::{IpAddr, Ipv4Addr};

pub const LOCALHOST: IpAddr = IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1));
pub const DORA_COORDINATOR_PORT_DEFAULT: u16 = 0xD02A;
pub const DORA_DAEMON_LOCAL_LISTEN_PORT_DEFAULT: u16 = 0xD02B;
pub const DORA_COORDINATOR_PORT_CONTROL_DEFAULT: u16 = 0x177C;
pub const DORA_COORDINATOR_PORT_DEFAULT: u16 = 53290;
pub const DORA_DAEMON_LOCAL_LISTEN_PORT_DEFAULT: u16 = 53291;
pub const DORA_COORDINATOR_PORT_CONTROL_DEFAULT: u16 = 6012;

pub const MANUAL_STOP: &str = "dora/stop";

Loading…
Cancel
Save