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