summaryrefslogtreecommitdiff
path: root/toxcore/util.h
diff options
context:
space:
mode:
authorCoren[m] <Break@Ocean>2013-10-06 16:37:02 +0200
committerCoren[m] <Break@Ocean>2013-10-06 16:37:02 +0200
commit355c55f745f507934deb236083db41ea2ee24312 (patch)
treed044f3a68eeb4bfe43a1a5e0be40cbec260d50fa /toxcore/util.h
parent1331a32223da0090ab982eabd4e04f3d8e36b6af (diff)
sendqueue_length no longer determines if we check for socket-can-write, but sendpacket() sets a timestamp if it happened
network.*: - sendpacket(): checks result and on EAGAIN, stores time of this event - networking_wait_prepare(): uses the time if set to check up to 500ms later for the socket to be writeable again - networking_wait_cleanup(): clears the time if the socket was writeable - fixed some accidental tabs Messenger.*, tox.*: - pass-through functions to reach networking_wait_cleanup() - fixed some accidental tabs
Diffstat (limited to 'toxcore/util.h')
-rw-r--r--toxcore/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/toxcore/util.h b/toxcore/util.h
index 13ab4792..1c1898a0 100644
--- a/toxcore/util.h
+++ b/toxcore/util.h
@@ -20,6 +20,7 @@ typedef int (*load_state_callback_func)(void *outer, uint8_t *data, uint32_t len
20int load_state(load_state_callback_func load_state_callback, void *outer, 20int 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#define LOGGING
23#ifdef LOGGING 24#ifdef LOGGING
24extern char logbuffer[512]; 25extern char logbuffer[512];
25void loginit(uint16_t port); 26void loginit(uint16_t port);