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
13 int tcp_listener_bind(ProxyContext
* const proxy_context
);
14 int tcp_listener_start(ProxyContext
* const proxy_context
);
15 void tcp_listener_stop(ProxyContext
* const proxy_context
);
16 int tcp_listener_kill_oldest_request(ProxyContext
* const proxy_context
);