mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
d311b2e9a9
(rip golden shield users D:) remove more dead code debug udp stuff remove debug kqueue
20 lines
404 B
C
20 lines
404 B
C
#ifndef LLARP_NET_H
|
|
#define LLARP_NET_H
|
|
#if defined(_WIN32) || defined(__MINGW32__)
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
typedef unsigned short in_port_t;
|
|
typedef unsigned int in_addr_t;
|
|
#else
|
|
#include <arpa/inet.h>
|
|
#include <netinet/in.h>
|
|
#include <sys/socket.h>
|
|
#endif
|
|
#include <stdbool.h>
|
|
#include <sys/types.h>
|
|
|
|
bool
|
|
llarp_getifaddr(const char* ifname, int af, struct sockaddr* addr);
|
|
|
|
#endif
|