mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
27 lines
533 B
C++
27 lines
533 B
C++
#ifndef LLARP_LINK_HPP
|
|
#define LLARP_LINK_HPP
|
|
#include <llarp/crypto.h>
|
|
#include <netinet/in.h>
|
|
#include <cstdint>
|
|
#include <functional>
|
|
#include <map>
|
|
#include <memory>
|
|
|
|
#include <llarp/ev.h>
|
|
#include <llarp/router_contact.h>
|
|
#include "mem.hpp"
|
|
|
|
struct llarp_link {
|
|
static void *operator new(size_t sz) {
|
|
return llarp_g_mem.alloc(sz, llarp::alignment<llarp_link>());
|
|
}
|
|
|
|
static void operator delete(void *ptr) { llarp_g_mem.free(ptr); }
|
|
|
|
struct sockaddr_in6 localaddr;
|
|
int af;
|
|
llarp_udp_listener listener;
|
|
};
|
|
|
|
#endif
|