/home/barant/Documents/Development/BMASockets/BMASMTPSession.h
#ifndef __BMASMTPSession_h__
#define __BMASMTPSession_h__
#include "BMASession.h"
class BMASMTPSession : public BMASession {
public:
BMAConsoleSession(BMAEPoll &ePoll, BMAConsoleServer &server);
~BMAConsoleSession();
virtual void output(std::stringstream &out);
protected:
void protocol(char *data, int length) override;
private:
BMAConsoleServer &server;
enum Status {WELCOME, PROMPT, INPUT, PROCESS, DONE};
Status status = WELCOME;
void doCommand(std::string request);
};
#endif
BMAEPoll
Definition: BMAEPoll.h:29
BMAConsoleServer
Definition: BMAConsoleServer.h:9
BMASession
Definition: BMASession.h:18
BMASMTPSession::output
virtual void output(std::stringstream &out)
BMASMTPSession
Definition: BMASMTPSession.h:14
BMAConsoleSession
Definition: BMAConsoleSession.h:16