summaryrefslogtreecommitdiff
path: root/src/Erebos/Network/ifaddrs.h
blob: 2ee45a7bb4da496b97ee1db4a7fab8a3bc9d7281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);