💾 Archived View for gemini.rmf-dev.com › repo › Vaati › gmi_proxy › files › bef47cd8f72a9b06bde2fde3… captured on 2023-05-24 at 18:46:30. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-19)

➡️ Next capture (2023-09-08)

-=-=-=-=-=-=-

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