BARANTMail/BMAPOP3Server.h
2019-07-10 20:13:12 -07:00

26 lines
544 B
C++

#ifndef BMAPOP3Server_h__
#define BMAPOP3Server_h__
#include "includes"
#include "BMATCPServerSocket.h"
#include "BMACommand.h"
class BMATCPSocket;
class BMAPOP3Server : public BMATCPServerSocket {
public:
BMAPOP3Server(BMAEPoll &ePoll, std::string url, short int port);
~BMAPOP3Server();
BMASession * getSocketAccept();
void registerCommand(BMACommand &command);
int processCommand(BMASession *session) override; ///<Output the consoles array to the console.
std::vector<BMACommand *> commands;
};
#endif