Changes to update Tomato RAF.
[tomato.git] / release / src / router / dnscrypt / src / proxy / tcp_request.h
blob9bdb6809a2c6468e4a674cfb80870068446219ba
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
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);
18 #endif