void Client::commandApop(const std::string &arg) { std::string myarg(arg.c_str()); unsigned int sep = myarg.find(" "); if (sep != std::string::npos && sep > 1) { std::string uname(myarg.substr(0, sep)); std::string upass(myarg.substr(sep + 1, 32)); if ((this->user_ = this->server_.getUserList().findUser(uname, upass)) != NULL) { std::string vals(this->MailsInfo(uname)); std::istringstream ss(vals); std::string s; std::string txt(uname); txt += "'s mailbox has "; ss >> s; txt.append(s); txt += " messages ("; ss >> s; txt += s; txt += " octets)"; std::cout << "yoo mama |" << txt << std::endl; this->response_.setCode("+Ok"); this->response_.setText(txt); this->request_.resetRequest(); }
void u2048(register complex *a) { u512(a); u256(a + 512); u256(a + 768); u512(a + 1024); u512(a + 1536); upass(a,d2048,d1024,256); }