It works!!!
This commit is contained in:
1 parent
20d5c99517
commit
b7398afc05
16 files changed
+160
-197
No files matched your search
+10
-10
@@ -10,28 +10,28 @@ namespace core {
|
||||
///
|
||||
/// ConsoleSession
|
||||
///
|
||||
/// Extends the session parameters for this TCPSocket derived object.
|
||||
/// Extends the session parameters for this TCPSocket derived object.
|
||||
/// Extend the protocol() method in order to define the behavior and
|
||||
/// protocol interaction for this socket which is a console session.
|
||||
///
|
||||
///
|
||||
|
||||
class ConsoleSession : public TerminalSession {
|
||||
|
||||
|
||||
public:
|
||||
ConsoleSession(EPoll &ePoll, TCPServer &server);
|
||||
~ConsoleSession();
|
||||
|
||||
~ConsoleSession();
|
||||
|
||||
void writeLog(std::string data);
|
||||
|
||||
protected:
|
||||
void protocol(coreutils::ZString data) override;
|
||||
|
||||
void protocol(coreutils::ZString &data) override;
|
||||
|
||||
private:
|
||||
enum Status {WELCOME, LOGIN, WAIT_USER_PROFILE, PASSWORD, WAIT_PASSWORD, PROMPT, INPUT, PROCESS, DONE};
|
||||
Status status = WELCOME;
|
||||
void doCommand(coreutils::ZString request);
|
||||
Status status = WELCOME;
|
||||
void doCommand(coreutils::ZString &request);
|
||||
coreutils::ZString command;
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user