BMA Server Framework
/home/barant/Documents/Development/BMASockets/BMASMTPServer.h
1 #ifndef BMAConsoleServer_h__
2 #define BMAConsoleServer_h__
3 
4 #include "includes"
5 #include "BMATCPServerSocket.h"
6 #include "BMACommand.h"
7 class BMATCPSocket;
8 
14 
16 
17  public:
18  BMASMTPServer(BMAEPoll &ePoll, std::string url, short int port);
19  ~BMASMTPServer();
20 
21  BMASession * getSocketAccept() override;
22 
23  void registerCommand(BMACommand &command);
24 
25  int processCommand(BMASession *session) override;
26 
27  std::vector<BMACommand *> commands;
28 
29 };
30 
31 #endif
Definition: BMATCPSocket.h:18
Definition: BMASMTPServer.h:15
Definition: BMATCPServerSocket.h:20
Definition: BMAEPoll.h:29
BMASession * getSocketAccept() override
Definition: BMACommand.h:8
Definition: BMASession.h:18
int processCommand(BMASession *session) override
Output the consoles array to the console.