Working Version

This commit is contained in:
Brad Arant committed 2021-08-07 11:47:54 -07:00
1 parent 46f98dff69
commit 20d5c99517
10 files changed
+82 -84

No files matched your search

+6 -6
View File
@@ -4,18 +4,18 @@
#include "Log.h"
namespace core {
ConsoleServer::ConsoleServer(EPoll &ePoll, IPAddress address) : TCPServer(ePoll, address, "Console") {
coreutils::Log(this);
coreutils::Log(this);
}
void ConsoleServer::logSend(std::string out) {
for(auto *session : sessions)
for(auto *session : sessions)
((ConsoleSession *)session)->writeLog(out);
}
TCPSession * ConsoleServer::getSocketAccept(EPoll &ePoll) {
return new ConsoleSession(ePoll, *this);
}
}