Explorar o código

Add general usercontext variable to CPP server

Simon Hailes %!s(int64=8) %!d(string=hai) anos
pai
achega
6dd910c98e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      include/CivetServer.h

+ 4 - 0
include/CivetServer.h

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