diff options
Diffstat (limited to 'toxcore/network.h')
-rw-r--r-- | toxcore/network.h | 7 |
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 | */ |
315 | int networking_wait_prepare(Networking_Core *net, uint32_t sendqueue_length, uint8_t *data, uint16_t *lenptr); | 315 | size_t networking_wait_data_size(); |
316 | int networking_wait_execute(uint8_t *data, uint16_t len, uint16_t milliseconds); | 316 | int networking_wait_prepare(Networking_Core *net, uint32_t sendqueue_length, uint8_t *data); |
317 | void networking_wait_cleanup(Networking_Core *net, uint8_t *data, uint16_t len); | 317 | int networking_wait_execute(uint8_t *data, long seconds, long microseconds); |
318 | int 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. |