BMA Server Framework
/home/barant/Documents/Development/BMASockets/BMAIMAPSession.h
1 #ifndef __BMAIMAPSession_h__
2 #define __BMAIMAPSession_h__
3 
4 #include "BMASession.h"
5 #include "BMAIMAPServer.h"
6 
14 
15 class BMAIMAPSession : public BMASession {
16 
17  public:
18  BMAIMAPSession(BMAEPoll &ePoll, BMAConsoleServer &server);
19  ~BMAIMAPSession();
20 
21  virtual void output(std::stringstream &out);
22 
23  protected:
24  void protocol(char *data, int length) override;
25 
26 private:
27  BMAConsoleServer &server;
28  enum Status {WELCOME, PROMPT, INPUT, PROCESS, DONE};
29  Status status = WELCOME;
30  void doCommand(std::string request);
31 
32 };
33 
34 #endif
Definition: BMAEPoll.h:29
virtual void output(std::stringstream &out)
Definition: BMAConsoleServer.h:9
Definition: BMASession.h:18
Definition: BMAIMAPSession.h:15