Przeglądaj źródła

Add general usercontext variable to CPP server

Simon Hailes 8 lat temu
rodzic
commit
6dd910c98e
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      include/CivetServer.h

+ 4 - 0
include/CivetServer.h

@@ -531,6 +531,10 @@ class CIVETWEB_API CivetServer
 	                      std::string &dst,
 	                      std::string &dst,
 	                      bool append = false);
 	                      bool append = false);
 
 
+        // generic user context which can be set/read,
+        // the server does noting with this apart form keep it.
+        void *UserContext;
+        
   protected:
   protected:
 	class CivetConnection
 	class CivetConnection
 	{
 	{