summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index aaf89f19..97a73014 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -312,9 +312,10 @@ void networking_poll(Networking_Core *net);
312/* 312/*
313 * functions to avoid excessive polling 313 * functions to avoid excessive polling
314 */ 314 */
315int networking_wait_prepare(Networking_Core *net, uint32_t sendqueue_length, uint8_t *data, uint16_t *lenptr); 315size_t networking_wait_data_size();
316int networking_wait_execute(uint8_t *data, uint16_t len, uint16_t milliseconds); 316int networking_wait_prepare(Networking_Core *net, uint32_t sendqueue_length, uint8_t *data);
317void networking_wait_cleanup(Networking_Core *net, uint8_t *data, uint16_t len); 317int networking_wait_execute(uint8_t *data, long seconds, long microseconds);
318int networking_wait_cleanup(Networking_Core *net, uint8_t *data);
318 319
319/* Initialize networking. 320/* Initialize networking.
320 * bind to ip and port. 321 * bind to ip and port.