]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/configproto.h
COmpose CXXFLAGS for tests correctly.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / configproto.h
index 2b76c4136604facc2d75a4b45c52d44018bdaa0c..b50b434aa80993bedf15830888b6dde8ab5daf80 100644 (file)
@@ -84,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<std::string>      answerList;
     std::list<std::string>      requestList;
     uint32_t                    adminIP;
     std::string                 adminLogin;
@@ -101,6 +101,7 @@ private:
     int                         state;
     ADMIN *                     currAdmin;
     PLUGIN_LOGGER &             logger;
+    std::string                 dataAnswer;
 
     int                         listenSocket;