#include "system.h"
#include "event.h"
+#include "hash.h"
+#include "logger.h"
#include "meshlink.h"
#include "sockaddr.h"
bool localdiscovery;
sockaddr_t localdiscovery_address;
+
+ hash_t *node_udp_cache;
+ struct connection_t *everyone;
+ struct ecdsa *invitation_key;
+
+ debug_t debug_level;
};
/// A handle for a MeshLink node.
extern meshlink_handle_t *mesh;
+/// Header for data packets routed between nodes
+typedef struct meshlink_packethdr {
+ uint8_t destination[16];
+ uint8_t source[16];
+} __attribute__ ((__packed__)) meshlink_packethdr_t;
+
#endif // MESHLINK_INTERNAL_H