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.c | |
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.c')
-rw-r--r-- | toxcore/tox.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 1507b2c5..d48de0d8 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -394,9 +394,13 @@ int tox_isconnected(void *tox) | |||
394 | * return allocated instance of tox on success. | 394 | * return allocated instance of tox on success. |
395 | * return 0 if there are problems. | 395 | * return 0 if there are problems. |
396 | */ | 396 | */ |
397 | void *tox_new_ex(uint8_t ipv6enabled) | ||
398 | { | ||
399 | return initMessenger(ipv6enabled); | ||
400 | } | ||
397 | void *tox_new(void) | 401 | void *tox_new(void) |
398 | { | 402 | { |
399 | return initMessenger(); | 403 | return tox_new_ex(0); |
400 | } | 404 | } |
401 | 405 | ||
402 | /* Run this before closing shop. | 406 | /* Run this before closing shop. |