summaryrefslogtreecommitdiff
path: root/toxcore/util.h
diff options
context:
space:
mode:
authorCoren[m] <Break@Ocean>2013-09-27 03:27:52 +0200
committerCoren[m] <Break@Ocean>2013-09-27 03:27:52 +0200
commit9de295374decd78fd676574bd38243479dfd6054 (patch)
treea614006e1919e1c16f67fe0c90b16114d0b47aab /toxcore/util.h
parentbeff2b6de659a708ed366a9ae925eab8c4ca0ddd (diff)
expanded Client_data to hold two addresses (IPv4, IPv6) instead of one
Compilerflag: CLIENT_ONETOONE_IP (to define in DHT.h, default unset i.e. NEW case: two addresses) Every function in DHT{_test}.c working on Client_data has been rewritten to store IPv4 addresses in assoc4, IPv6 addresses in assoc6. Loading/Storing of states defined with other compiler switch is transparently adjusting to the differences. DHT.h, DHT.c: - introduction and handling of the structure changes DHT_test.c, Messenger.c: - logging adapted to new structures util.h: - LOGGING isn't undefined per default anymore
Diffstat (limited to 'toxcore/util.h')
-rw-r--r--toxcore/util.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/toxcore/util.h b/toxcore/util.h
index 9e4ac79a..13ab4792 100644
--- a/toxcore/util.h
+++ b/toxcore/util.h
@@ -20,8 +20,6 @@ typedef int (*load_state_callback_func)(void *outer, uint8_t *data, uint32_t len
20int load_state(load_state_callback_func load_state_callback, void *outer, 20int load_state(load_state_callback_func load_state_callback, void *outer,
21 uint8_t *data, uint32_t length, uint16_t cookie_inner); 21 uint8_t *data, uint32_t length, uint16_t cookie_inner);
22 22
23#undef LOGGING
24/* #define LOGGING */
25#ifdef LOGGING 23#ifdef LOGGING
26extern char logbuffer[512]; 24extern char logbuffer[512];
27void loginit(uint16_t port); 25void loginit(uint16_t port);