First implementation for the conversation system (not 100% finished yet)

This commit is contained in:
WolverinDEV
2019-07-19 22:55:03 +02:00
parent dd0eaf33e5
commit e507d1f75d
20 changed files with 1545 additions and 44 deletions
+8 -1
View File
@@ -226,7 +226,8 @@ inline sockaddr_in* resolveAddress(const string& host, uint16_t port) {
}
bool InstanceHandler::startInstance() {
if (this->active) return false;
if (this->active)
return false;
active = true;
this->web_list->enabled = ts::config::server::enable_teamspeak_weblist;
@@ -236,6 +237,12 @@ bool InstanceHandler::startInstance() {
return false;
}
this->conversation_io = make_shared<event::EventExecutor>("conv io #");
if(!this->conversation_io->initialize(1)) { //TODO: Make the conversation IO loop thread size configurable
logCritical(LOG_GENERAL, "Failed to initialize conversation io write loop");
return false;
}
//Startup file server
sockaddr_in *fAddr = resolveAddress(this->properties()[property::SERVERINSTANCE_FILETRANSFER_HOST].as<string>(), this->properties()[property::SERVERINSTANCE_FILETRANSFER_PORT].as<uint16_t>());
if (!fAddr) {