]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/configproto.h
Added a function to check user existance.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / configproto.h
index 2917567ea59167e0d0d05ad5ce8de93c7ece7b74..206e543bcadd598368893e789804067db05afc6e 100644 (file)
@@ -32,6 +32,7 @@
 #include <list>
 #include <vector>
 
 #include <list>
 #include <vector>
 
+#include "stg/module_settings.h"
 #include "stg/os_int.h"
 
 #include <expat.h>
 #include "stg/os_int.h"
 
 #include <expat.h>
@@ -83,13 +84,13 @@ private:
     int             RecvLoginS(int sock);
     int             SendLoginSAnswer(int sock, int err);
     int             RecvData(int sock);
     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);
     void            WriteLogAccessFailed(uint32_t ip);
+    const std::string & GetDataAnswer() const { return dataAnswer; }
 
     int             ParseCommand();
 
 
     int             ParseCommand();
 
-    std::list<std::string>      answerList;
     std::list<std::string>      requestList;
     uint32_t                    adminIP;
     std::string                 adminLogin;
     std::list<std::string>      requestList;
     uint32_t                    adminIP;
     std::string                 adminLogin;
@@ -100,6 +101,7 @@ private:
     int                         state;
     ADMIN *                     currAdmin;
     PLUGIN_LOGGER &             logger;
     int                         state;
     ADMIN *                     currAdmin;
     PLUGIN_LOGGER &             logger;
+    std::string                 dataAnswer;
 
     int                         listenSocket;
 
 
     int                         listenSocket;