Server update 0.63.5

- async lua implementation
- cleaner backend heartbeat
- two way encryption on connect
- async tcp buffer
- disconnect handler
- cleaned UDP implementation
This commit is contained in:
Anonymous275
2020-10-16 17:05:31 +03:00
parent 31c96cee94
commit 71a84b4f1b
14 changed files with 314 additions and 169 deletions

View File

@@ -8,6 +8,7 @@
#include "lua.hpp"
#include <vector>
#include <thread>
#include <mutex>
#include <set>
#include <any>
namespace fs = std::experimental::filesystem;
@@ -50,17 +51,15 @@ public:
void SetPluginName(const std::string&Name);
void SetFileName(const std::string&Name);
fs::file_time_type GetLastWrite();
bool isThreadExecuting = false;
std::string GetPluginName();
std::string GetFileName();
bool isExecuting = false;
bool StopThread = false;
bool HasThread = false;
lua_State* GetState();
char* GetOrigin();
std::mutex Lock;
void Reload();
void Init();
};
int CallFunction(Lua*lua,const std::string& FuncName,LuaArg* args);
int TriggerLuaEvent(const std::string& Event,bool local,Lua*Caller,LuaArg* arg);
int TriggerLuaEvent(const std::string& Event,bool local,Lua*Caller,LuaArg* arg,bool Wait);
extern std::set<Lua*> PluginEngine;