0 /* See LICENSE file for copyright and license details. */
1 #include <netinet/in.h>
2
3 struct client {
4 int sock;
5 int server_sock;
6 struct thread *thread;
7 struct tls *ctx;
8 struct tls *conn;
9 struct tls_config *conn_config;
10 struct sockaddr_in addr;
11 struct server *server;
12 socklen_t addr_len;
13 time_t start;
14 time_t last;
15 char data[2048];
16 char request[1024];
17 char url[1024];
18 size_t len;
19 size_t sent;
20 int tid;
21 int id;
22 int state;
23 bool handshaked;
24 };
25
26 int proxy_init(int port);
27 void proxy_join();
28