summaryrefslogtreecommitdiff
path: root/src/Erebos/Network/ifaddrs.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-02-19 21:40:25 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-02-19 21:40:25 +0100
commit94d84d2b7a35b965b26f823e1ee7e7c1ce419d87 (patch)
treedf6bd4c3ce2c7c944c63ca77b02aee552a8436d2 /src/Erebos/Network/ifaddrs.h
parent37d10a1912b845e0b1a50062d84f5c50e41c4ea6 (diff)
parent1f6eb330e9fd9f0004dec4783496d36520dbd2a3 (diff)
Merge branch 'release-0.1'HEADmaster
Diffstat (limited to 'src/Erebos/Network/ifaddrs.h')
-rw-r--r--src/Erebos/Network/ifaddrs.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Erebos/Network/ifaddrs.h b/src/Erebos/Network/ifaddrs.h
index 8852ec6..2ee45a7 100644
--- a/src/Erebos/Network/ifaddrs.h
+++ b/src/Erebos/Network/ifaddrs.h
@@ -1,5 +1,18 @@
#include <stddef.h>
#include <stdint.h>
+#ifndef _WIN32
+#include <sys/socket.h>
+#else
+#include <winsock2.h>
+#endif
+
+struct InetAddress
+{
+ int family;
+ uint8_t addr[16];
+} __attribute__((packed));
+
uint32_t * join_multicast(int fd, size_t * count);
+struct InetAddress * local_addresses( size_t * count );
uint32_t * broadcast_addresses(void);