summaryrefslogtreecommitdiff
path: root/toxcore/TCP_server.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-12-26 20:12:51 -0500
committerirungentoo <irungentoo@gmail.com>2014-12-26 20:12:51 -0500
commitc2e394c5c2a60927b543c8eb9791724edca917ff (patch)
tree917b23bb8dddaca2b7c3c47fea31c25d1ca96cff /toxcore/TCP_server.h
parentfe57a72659a8a298d8c11f7355d15815dee10195 (diff)
Fixed bug with auto tests and cleaned up the code a bit.
Diffstat (limited to 'toxcore/TCP_server.h')
-rw-r--r--toxcore/TCP_server.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h
index 3a6a868c..727c4b4e 100644
--- a/toxcore/TCP_server.h
+++ b/toxcore/TCP_server.h
@@ -154,6 +154,11 @@ void do_TCP_server(TCP_Server *TCP_server);
154 */ 154 */
155void kill_TCP_server(TCP_Server *TCP_server); 155void kill_TCP_server(TCP_Server *TCP_server);
156 156
157/* return the amount of data in the tcp recv buffer.
158 * return 0 on failure.
159 */
160unsigned int TCP_socket_data_recv_buffer(sock_t sock);
161
157/* Read the next two bytes in TCP stream then convert them to 162/* Read the next two bytes in TCP stream then convert them to
158 * length (host byte order). 163 * length (host byte order).
159 * 164 *