~CONFIGPROTO();
void SetPort(uint16_t port);
- //void SetHostAllow(HOSTALLOW * ha);
void SetAdmins(ADMINS * a);
void SetUsers(USERS * u);
void SetTariffs(TARIFFS * t);
void SetStore(BASE_STORE * s);
void SetStgSettings(const SETTINGS * s);
- const string & GetAdminLogin();
- uint32_t GetAdminIP();
+ uint32_t GetAdminIP() const;
int Prepare();
int Stop();
- const string & GetStrError();
+ const string & GetStrError() const;
static void * Run(void * a);
private:
pthread_t thrReciveSendConf;
bool nonstop;
int state;
- //HOSTALLOW * hostAllow;
ADMIN currAdmin;
STG_LOGGER & WriteServLog;
- int outerSocket;
int listenSocket;
- struct sockaddr_in outerAddr;
- socklen_t outerAddrLen;
PARSER_GET_SERVER_INFO parserGetServInfo;
PARSER_CHG_TARIFF parserChgTariff;
ADMINS * admins;
- //USERS * users;
- //TARIFFS * tariffs;
- //BASE_STORE * store;
- //const SETTINGS * settings;
BASE_PARSER * currParser;
vector<BASE_PARSER*> dataParser;