/home/barant/Documents/Development/BMASockets/BMAIMAPSession.h
#ifndef __BMAIMAPSession_h__
#define __BMAIMAPSession_h__
#include "BMASession.h"
#include "BMAIMAPServer.h"
class BMAIMAPSession : public BMASession {
public:
BMAIMAPSession(BMAEPoll &ePoll, BMAConsoleServer &server);
~BMAIMAPSession();
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
BMAIMAPSession::output
virtual void output(std::stringstream &out)
BMAConsoleServer
Definition: BMAConsoleServer.h:9
BMASession
Definition: BMASession.h:18
BMAIMAPSession
Definition: BMAIMAPSession.h:15