You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/include/llarp/net.h

18 lines
319 B
C

6 years ago
#ifndef LLARP_NET_H
#define LLARP_NET_H
6 years ago
#if defined(__MINGW32__)
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <arpa/inet.h>
7 years ago
#include <netinet/in.h>
#endif
#include <stdbool.h>
7 years ago
#include <sys/socket.h>
#include <sys/types.h>
7 years ago
bool
llarp_getifaddr(const char* ifname, int af, struct sockaddr* addr);
7 years ago
#endif