Working compile copy.

This commit is contained in:
Brad Arant committed 2019-03-04 13:08:34 -08:00
1 parent 41ff757f09
commit f894f3fb66
54 files changed
+249 -355

No files matched your search

+7 -7
View File
@@ -5,20 +5,20 @@
namespace core {
ConsoleServer::ConsoleServer(EPoll &ePoll, IPAddress address)
: TCPServerSocket(ePoll, address) {
Log(this);
}
ConsoleServer::ConsoleServer(EPoll &ePoll, Service service, IPAddress address)
: TCPServerSocket(ePoll, service, address) {
Log(this);
}
ConsoleServer::~ConsoleServer() {}
void ConsoleServer::sendToConnectedConsoles(std::string out) {
for(auto *session : service->sessions)
((ConsoleSession *)session)->writeLog(out);
for(auto *session : service.sessions)
((ConsoleSession *)session)->writeLog(out);
}
Session * ConsoleServer::getSocketAccept() {
return new ConsoleSession(ePoll, *this->service);
return new ConsoleSession(ePoll, this->service);
}
void ConsoleServer::output(Session *session) {