summaryrefslogtreecommitdiff
path: root/toxcore/TCP_server.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-02-27 02:07:59 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-05-20 15:42:42 +0000
commitbe797d4b039b40d2c876f0a71cd1e48454a74065 (patch)
treec759c0f15a3ac0285e0bd941dc3edad06ade015d /toxcore/TCP_server.h
parent291a849a5a0afb4450bcd0d0c50b7aeccaac04f5 (diff)
Move system header includes from network.h to network.c
Diffstat (limited to 'toxcore/TCP_server.h')
-rw-r--r--toxcore/TCP_server.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h
index 234f5ad1..c8cbeda0 100644
--- a/toxcore/TCP_server.h
+++ b/toxcore/TCP_server.h
@@ -32,11 +32,6 @@
32#include <sys/epoll.h> 32#include <sys/epoll.h>
33#endif 33#endif
34 34
35// Disable MSG_NOSIGNAL on systems not supporting it, e.g. Windows, FreeBSD
36#if !defined(MSG_NOSIGNAL)
37#define MSG_NOSIGNAL 0
38#endif
39
40#define MAX_INCOMING_CONNECTIONS 256 35#define MAX_INCOMING_CONNECTIONS 256
41 36
42#define TCP_MAX_BACKLOG MAX_INCOMING_CONNECTIONS 37#define TCP_MAX_BACKLOG MAX_INCOMING_CONNECTIONS
@@ -108,11 +103,6 @@ void do_TCP_server(TCP_Server *TCP_server);
108 */ 103 */
109void kill_TCP_server(TCP_Server *TCP_server); 104void kill_TCP_server(TCP_Server *TCP_server);
110 105
111/* return the amount of data in the tcp recv buffer.
112 * return 0 on failure.
113 */
114unsigned int TCP_socket_data_recv_buffer(Socket sock);
115
116/* Read the next two bytes in TCP stream then convert them to 106/* Read the next two bytes in TCP stream then convert them to
117 * length (host byte order). 107 * length (host byte order).
118 * 108 *