diff options
author | irungentoo <irungentoo@gmail.com> | 2013-06-24 07:26:30 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-06-24 07:26:30 -0400 |
commit | baf14f81211dbc63aac13d76ef0fbbacc3391950 (patch) | |
tree | d9856a0c45714b2e5906ff5af012f570d884a4f0 /core/DHT.c | |
parent | 25f5af009f605260a3cd0fdee671945118dfdaac (diff) |
Merged "wxWidgets VS template for windows" from juryben
That big 40MB file is useless so I merged the repos in a way that it
dissapears forever from the main repo.
Diffstat (limited to 'core/DHT.c')
-rw-r--r-- | core/DHT.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 | ||
39 | char delfriend(char * client_id); | 39 | char delfriend(char * client_id) |
40 | { | 40 | { |
41 | 41 | ||
42 | 42 | ||
@@ -60,8 +60,7 @@ IP_Port getfriendip(char * client_id) | |||
60 | 60 | ||
61 | void DHT_recvpacket(char * packet, uint32_t length) | 61 | void 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 | |||