#include <list>
#include <vector>
+#include "stg/module_settings.h"
#include "stg/os_int.h"
#include <expat.h>
void SetPort(uint16_t port);
void SetAdmins(ADMINS * a);
- void SetUsers(USERS * u);
- void SetTariffs(TARIFFS * t);
- void SetStore(STORE * s);
- void SetStgSettings(const SETTINGS * s);
uint32_t GetAdminIP() const { return adminIP; }
int Prepare();
int Stop();
int RecvLoginS(int sock);
int SendLoginSAnswer(int sock, int err);
int RecvData(int sock);
- int SendDataAnswer(int sock);
- void SendError(const char * text);
+ 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();
- std::list<std::string> answerList;
std::list<std::string> requestList;
uint32_t adminIP;
std::string adminLogin;
int state;
ADMIN * currAdmin;
PLUGIN_LOGGER & logger;
+ std::string dataAnswer;
int listenSocket;