dnscrypt-proxy 1.6.0
[tomato.git] / release / src / router / dnscrypt / src / proxy / tcp_request.h
blob2220b66bd904e191b47e39af4754eeb989dd3cd3
2 #ifndef __TCP_REQUEST_H__
3 #define __TCP_REQUEST_H__ 1
5 #include "dnscrypt_proxy.h"
7 #define DNS_MAX_PACKET_SIZE_TCP (65535U + 2U)
9 #ifndef TCP_REQUEST_BACKLOG
10 # define TCP_REQUEST_BACKLOG 128
11 #endif
12 #ifndef TCP_FASTOPEN_QUEUES
13 # define TCP_FASTOPEN_QUEUES TCP_REQUEST_BACKLOG
14 #endif
16 int tcp_listener_bind(ProxyContext * const proxy_context);
17 int tcp_listener_start(ProxyContext * const proxy_context);
18 void tcp_listener_stop(ProxyContext * const proxy_context);
19 int tcp_listener_kill_oldest_request(ProxyContext * const proxy_context);
21 #endif