#ifndef ____SMTP_HELO_h__ #define ____SMTP_HELO_h__ #include "Command.h" namespace mail { class __SMTP_HELO : public core::Command { int processCommand(std::string request, Session *session, std::stringstream &data); data << "" << std::endl; //--------------------------------------------------------------------------- // HELO command request handling. //--------------------------------------------------------------------------- if(command(input) == "HELO") { if(input.length() > 5) { string hostName = input.substr(5); } else { // TODO: Provide error message demanding identity here. // } cout << "250 " << getHostName() << CRLF; state = "READY"; }