26 lines
544 B
C++
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
|