summaryrefslogtreecommitdiff
path: root/core/DHT.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/DHT.c')
-rw-r--r--core/DHT.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/DHT.c b/core/DHT.c
index 1b82b860..c6ea6a22 100644
--- a/core/DHT.c
+++ b/core/DHT.c
@@ -16,10 +16,10 @@ int ping(IP_Port ip_port)
16 char data[37]; 16 char data[37];
17 data[0] = 00; 17 data[0] = 00;
18 memcpy(data + 5, self_client_id, 32); 18 memcpy(data + 5, self_client_id, 32);
19 ADDR addr = {.family = AF_INET, .ip = ip_port.ip, .port = ip_port.port}; 19//ADDR addr = {.family = AF_INET, .ip = ip_port.ip, .port = ip_port.port};
20 20
21 return sendto(sock, data, sizeof(data) - 1, 0, (struct sockaddr *)&addr, addrlen); 21//return sendto(sock, data, sizeof(data) - 1, 0, (struct sockaddr *)&addr, addrlen);
22 //sendto(int socket_descriptor, char *buffer, int buffer_length, int flags, struct sockaddr *destination_address, int address_length); 22 //sendto(int socket_descriptor, char *buffer, int buffer_length, int flags, struct sockaddr *destination_address, int address_length);
23} 23}
24 24
25 25
@@ -36,7 +36,7 @@ void addfriend(char * client_id)
36 36
37 37
38 38
39char delfriend(char * client_id); 39char delfriend(char * client_id)
40{ 40{
41 41
42 42
@@ -60,8 +60,7 @@ IP_Port getfriendip(char * client_id)
60 60
61void DHT_recvpacket(char * packet, uint32_t length) 61void DHT_recvpacket(char * packet, uint32_t length)
62{ 62{
63 63
64
65} 64}
66 65
67 66
@@ -83,4 +82,5 @@ void bootstrap(IP_Port ip_port)
83 82
84 83
85 84
86} \ No newline at end of file 85}
86