Implementation of Serice object into structure.

This commit is contained in:
Brad Arant committed 2019-02-16 12:01:36 -08:00
1 parent a2526dd3ed
commit 2cb1e3e2f2
23 files changed
+278 -293

No files matched your search

+5 -6
View File
@@ -1,12 +1,11 @@
#include "ConsoleSession.h"
#include "Log.h"
namespace core {
ConsoleSession::ConsoleSession(EPoll &ePoll, ConsoleServer &server) : TerminalSession(ePoll, server) {
}
ConsoleSession::ConsoleSession(EPoll &ePoll, Service &service) : TerminalSession(ePoll, service) {}
ConsoleSession::~ConsoleSession() {
}
ConsoleSession::~ConsoleSession() {}
void ConsoleSession::output(std::stringstream &out) {
// socket->output(out);
@@ -63,7 +62,7 @@ namespace core {
break;
case PROMPT:
Log(LOG_DEBUG_1) << "Lines is " << getLines() << ".";
Log(LOG_DEBUG_1) << "Lines is " << getLines() << ".";
setCursorLocation(17, 1);
clearEOL();
out << ("--> ");
@@ -106,7 +105,7 @@ namespace core {
saveCursor();
setCursorLocation(16, 1);
out << "--> " << request << std::endl;
server.commands.processRequest(request, this);
service.commands.processRequest(request, this);
restoreCursor();
send();
}