#ifndef DHT_H #define DHT_H #include "http.h" #define NODE_IP_MAX_SIZE 16 typedef struct{ int node_id; char node_ip[NODE_IP_MAX_SIZE]; int node_port; uint16_t hash_id; char node_request[HTTP_MAX_SIZE]; }lookup_request; void lookup_request_init(lookup_request*, int node_id, char *node_ip, int node_port, uint16_t hash_id, char *node_request); void create_lookup_request(lookup_request*, char *request); #endif //DHT_H