{
if (cp->currParser->ParseEnd(data, el) == 0)
{
+ cp->dataAnswer = cp->currParser->GetAnswer();
cp->currParser = NULL;
}
}
{
if (cp->dataParser[i]->ParseEnd(data, el) == 0)
{
+ cp->dataAnswer = cp->currParser->GetAnswer();
+ cp->currParser = NULL;
break;
}
}
int SendDataAnswer(int sock, const std::string & answer);
int SendError(int sock, const std::string & text);
void WriteLogAccessFailed(uint32_t ip);
+ const std::string & GetDataAnswer() const { return dataAnswer; }
int ParseCommand();
int state;
ADMIN * currAdmin;
PLUGIN_LOGGER & logger;
+ std::string dataAnswer;
int listenSocket;