Working Version
This commit is contained in:
1 parent
46f98dff69
commit
20d5c99517
10 files changed
+82
-84
No files matched your search
+6
-6
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user