add discovery timeout setting (#1304)

This commit is contained in:
o2e
2024-05-02 23:24:46 +08:00
committed by GitHub
parent 60cd399fa6
commit a0a376adf7
13 changed files with 69 additions and 6 deletions
+5
View File
@@ -19,6 +19,11 @@ const fallbackProtocolVersion = '1.0';
/// and multicast port.
const defaultPort = 53317;
/// The default discovery timeout in milliseconds.
/// This is the time the discovery server waits for responses.
/// If no response is received within this time, the target server is unavailable.
const defaultDiscoveryTimeout = 100;
/// The default multicast group should be 224.0.0.0/24
/// because on some Android devices this is the only IP range
/// that can receive UDP multicast messages.