浏览代码

Add general usercontext variable to CPP server

Simon Hailes 8 年之前
父节点
当前提交
6dd910c98e
共有 1 个文件被更改,包括 4 次插入0 次删除
  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
 	{