diff options
author | Coren[m] <Break@Ocean> | 2013-09-09 20:14:24 +0200 |
---|---|---|
committer | Coren[m] <Break@Ocean> | 2013-09-09 21:03:31 +0200 |
commit | 05d7b157c6560d4545f815b60b8c43aca6981227 (patch) | |
tree | 06d110716cd2c1605b3bee97894092f8472fb134 /toxcore/tox.h | |
parent | a77253c79b9c2acaa73164dcbd0694cb7b19db91 (diff) |
tox.*, Messenger.*:
- initialisation: argument added to enable/disable ipv6 as socket
Messenger_test.c:
- initialisation: ipv4 hardcoded for now
- delegating IP resolution to DHT_bootstrap_ex()
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 77f0be7f..f8d7975f 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -50,6 +50,8 @@ typedef struct { | |||
50 | uint16_t padding; | 50 | uint16_t padding; |
51 | } tox_IP_Port; | 51 | } tox_IP_Port; |
52 | 52 | ||
53 | #define TOX_IP_IS_IPV6 0 | ||
54 | |||
53 | /* Errors for m_addfriend | 55 | /* Errors for m_addfriend |
54 | * FAERR - Friend Add Error | 56 | * FAERR - Friend Add Error |
55 | */ | 57 | */ |
@@ -307,6 +309,7 @@ int tox_isconnected(Tox *tox); | |||
307 | * return 0 if there are problems. | 309 | * return 0 if there are problems. |
308 | */ | 310 | */ |
309 | Tox *tox_new(void); | 311 | Tox *tox_new(void); |
312 | Tox *tox_new_ex(uint8_t ipv6enabled); | ||
310 | 313 | ||
311 | /* Run this before closing shop. | 314 | /* Run this before closing shop. |
312 | * Free all datastructures. */ | 315 | * Free all datastructures. */ |