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/llarp/link.hpp

27 lines
533 B
C++

#ifndef LLARP_LINK_HPP
#define LLARP_LINK_HPP
#include <cstdint>
#include <functional>
#include <llarp/crypto.h>
#include <map>
#include <memory>
#include <netinet/in.h>
#include "mem.hpp"
#include <llarp/ev.h>
#include <llarp/router_contact.h>
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