aboutsummaryrefslogtreecommitdiff
path: root/core/net/common.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-01-27 22:16:24 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-01-27 22:16:24 +0100
commitd85c2c1ca7d73c5f0513c731a13c80116124b9e4 (patch)
tree8f342d5a55f7e1f6d7c28bed26c75680f5e36825 /core/net/common.odin
parent4d3fe34c88d08ee9e2d82b21dafdc8a77a3e3985 (diff)
Add mDNS/Bonjour/Avahi (.local) support for Windows
Diffstat (limited to 'core/net/common.odin')
-rw-r--r--core/net/common.odin3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/net/common.odin b/core/net/common.odin
index 263fc770f..64155313d 100644
--- a/core/net/common.odin
+++ b/core/net/common.odin
@@ -95,6 +95,7 @@ Resolve_Error :: enum u32 {
}
DNS_Error :: enum u32 {
+ None = 0,
Invalid_Hostname_Error = 1,
Invalid_Hosts_Config_Error,
Invalid_Resolv_Config_Error,
@@ -147,6 +148,8 @@ IP6_Loopback :: IP6_Address{0, 0, 0, 0, 0, 0, 0, 1}
IP4_Any := IP4_Address{}
IP6_Any := IP6_Address{}
+IP4_mDNS_Broadcast := Endpoint{address=IP4_Address{224, 0, 0, 251}, port=5353}
+
Endpoint :: struct {
address: Address,
port: int,