/home/bradarant/barant/BMAMail/SMTPCommand.h
Go to the documentation of this file.
#ifndef __SMTPCommand_h__
# define __SMTPCommand_h__
# include "Command.h"
# include "SMTPSession.h"
namespace mail {
class SMTPCommand : public core::Command {
public:
virtual int processCommand(std::string request, core::TCPSession *session, std::stringstream &data) override {
coreutils::PString parser(request);
return processCommand(parser, (SMTPSession &)*session, (SMTPService &)*session->server, data);
}
virtual int processCommand(coreutils::PString request, SMTPSession &session, SMTPService &service, std::stringstream &data) {}
};
}
#endif
SMTPSession.h
mail::SMTPCommand::processCommand
virtual int processCommand(std::string request, core::TCPSession *session, std::stringstream &data) override
Definition: SMTPCommand.h:12
mail::SMTPCommand::processCommand
virtual int processCommand(coreutils::PString request, SMTPSession &session, SMTPService &service, std::stringstream &data)
Definition: SMTPCommand.h:17
mail
Definition: __IMAP_APPEND.h:7
mail::SMTPCommand
Definition: SMTPCommand.h:9
mail::SMTPSession
Definition: SMTPSession.h:15
mail::SMTPService
Definition: SMTPService.h:21