summaryrefslogtreecommitdiff
path: root/src/Erebos/Network/ifaddrs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Erebos/Network/ifaddrs.h')
-rw-r--r--src/Erebos/Network/ifaddrs.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Erebos/Network/ifaddrs.h b/src/Erebos/Network/ifaddrs.h
new file mode 100644
index 0000000..2ee45a7
--- /dev/null
+++ b/src/Erebos/Network/ifaddrs.h
@@ -0,0 +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);