diff options
author | Coren[m] <Break@Ocean> | 2013-09-27 03:27:52 +0200 |
---|---|---|
committer | Coren[m] <Break@Ocean> | 2013-09-27 03:27:52 +0200 |
commit | 9de295374decd78fd676574bd38243479dfd6054 (patch) | |
tree | a614006e1919e1c16f67fe0c90b16114d0b47aab /toxcore/util.h | |
parent | beff2b6de659a708ed366a9ae925eab8c4ca0ddd (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.h | 2 |
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 | |||
20 | int load_state(load_state_callback_func load_state_callback, void *outer, | 20 | int 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 |
26 | extern char logbuffer[512]; | 24 | extern char logbuffer[512]; |
27 | void loginit(uint16_t port); | 25 | void loginit(uint16_t port); |