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

32 lines
651 B
C++

#ifndef BMAConsoleServer_h__
#define BMAConsoleServer_h__
#include "includes"
#include "BMATCPServerSocket.h"
#include "BMACommand.h"
class BMATCPSocket;
///
/// BMASMTPServer
///
/// Use this object to create a fully supported SMTP server.
///
class BMASMTPServer : public BMATCPServerSocket {
public:
BMASMTPServer(BMAEPoll &ePoll, std::string url, short int port);
~BMASMTPServer();
BMASession * getSocketAccept() override;
void registerCommand(BMACommand &command);
int processCommand(BMASession *session) override; ///<Output the consoles array to the console.
std::vector<BMACommand *> commands;
};
#endif