X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/bb0f5269e5987bcd09eaa0afc74d08dcd5dd29b7..225c7fb0b6ac5ef234d16231eb134dc91b78d889:/projects/stargazer/plugins/configuration/sgconfig/configproto.h diff --git a/projects/stargazer/plugins/configuration/sgconfig/configproto.h b/projects/stargazer/plugins/configuration/sgconfig/configproto.h index d73498ff..b50b434a 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/configproto.h +++ b/projects/stargazer/plugins/configuration/sgconfig/configproto.h @@ -32,6 +32,7 @@ #include #include +#include "stg/module_settings.h" #include "stg/os_int.h" #include @@ -83,13 +84,13 @@ private: 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 answerList; std::list requestList; uint32_t adminIP; std::string adminLogin; @@ -100,6 +101,7 @@ private: int state; ADMIN * currAdmin; PLUGIN_LOGGER & logger; + std::string dataAnswer; int listenSocket;