Implementation of Serice object into structure.
This commit is contained in:
1 parent
a2526dd3ed
commit
2cb1e3e2f2
23 files changed
+278
-293
No files matched your search
+8
-8
@@ -7,18 +7,18 @@ namespace core {
|
||||
|
||||
ConsoleServer::ConsoleServer(EPoll &ePoll, std::string url, short int port)
|
||||
: TCPServerSocket(ePoll, url, port) {
|
||||
Log(this);
|
||||
}
|
||||
|
||||
Log(this);
|
||||
}
|
||||
|
||||
ConsoleServer::~ConsoleServer() {}
|
||||
|
||||
|
||||
void ConsoleServer::sendToConnectedConsoles(std::string out) {
|
||||
for(auto *session : sessions)
|
||||
((ConsoleSession *)session)->writeLog(out);
|
||||
for(auto *session : service->sessions)
|
||||
((ConsoleSession *)session)->writeLog(out);
|
||||
}
|
||||
|
||||
|
||||
Session * ConsoleServer::getSocketAccept() {
|
||||
return new ConsoleSession(ePoll, *this);
|
||||
return new ConsoleSession(ePoll, *this->service);
|
||||
}
|
||||
|
||||
void ConsoleServer::output(Session *session) {
|
||||
|
||||
Reference in new issue
Block a user