Reimplementd IX with OpenSSL

This commit is contained in:
Kilian committed 2022-09-05 01:41:09 +02:00
1 parent 5e80c41538
commit 71656e4a66
214 files changed
+44919 -99

No files matched your search

+9 -9
View File
@@ -12,7 +12,7 @@ std::atomic<bool> wantsExit;
std::map<std::string, std::string> configuration;
Socket *connector;
Websocket *connector;
/* Datarefs */
XPLMDataRef pauseIndicator;
@@ -107,20 +107,20 @@ PLUGIN_API int XPluginStart(char *outName, char *outSig, char *outDesc)
roll = XPLMFindDataRef("sim/flightmodel/position/phi"); // FLOAT
quaternion = XPLMFindDataRef("sim/flightmodel/position/q"); // FLOAT[4]
// Initialize connector
configuration =
config::readConfig("Resources/plugins/GAConnector/config.cfg");
toLog("Config loaded");
try {
connector =
new Socket("https://wsecho.hofmannnet.myhome-server.de/client", toLog);
connector = new Websocket("wss://ws.hofmannnet.myhome-server.de:8000",
configuration["user"],
toLog);
} catch (const std::invalid_argument &e) {
toLog(e.what());
return 0;
}
toLog("WebSocket started");
configuration =
config::readConfig("Resources/plugins/GAConnector/config.cfg");
toLog("Config loaded");
char hash[2 * MD5LEN + 1] = "";
if (util::generateMD5("Custom Scenery/scenery_packs.ini", hash, toLog) == 0) {
std::map<std::string, std::pair<std::vector<Gate>, std::vector<Runway>>>
@@ -238,7 +238,7 @@ void serverWorker()
connector->sendData(copy);
std::this_thread::sleep_for(std::chrono::milliseconds(50));
std::this_thread::sleep_for(std::chrono::milliseconds(250));
}
}