feat: add basic (unfinished) proxy

This commit is contained in:
2026-03-20 05:03:11 -03:00
parent a65dfaf33b
commit 4a7957c1b6
2 changed files with 180 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#pragma once
#include <thread>
#include <atomic>
#define PROXY_PORT 1337
typedef unsigned __int64 SOCKET;
class Proxy {
public:
Proxy();
~Proxy();
bool Init();
void Shutdown();
private:
void loop();
void handleClient(SOCKET clientSocket);
SOCKET _listenSocket = 0;
std::thread _workerThread;
std::atomic<bool> _running;
};