|
@@ -228,10 +228,10 @@ class CIVETWEB_API CivetServer
|
|
*/
|
|
*/
|
|
CivetServer(const char **options,
|
|
CivetServer(const char **options,
|
|
const struct CivetCallbacks *callbacks = 0,
|
|
const struct CivetCallbacks *callbacks = 0,
|
|
- const void *UserContext = 0);
|
|
|
|
|
|
+ const void *UserContext = 0);
|
|
CivetServer(std::vector<std::string> options,
|
|
CivetServer(std::vector<std::string> options,
|
|
const struct CivetCallbacks *callbacks = 0,
|
|
const struct CivetCallbacks *callbacks = 0,
|
|
- const void *UserContext = 0);
|
|
|
|
|
|
+ const void *UserContext = 0);
|
|
|
|
|
|
/**
|
|
/**
|
|
* Destructor
|
|
* Destructor
|
|
@@ -533,13 +533,14 @@ 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 nothing with this apart from keep it.
|
|
|
|
- const void *getUserContext() const
|
|
|
|
|
|
+ // generic user context which can be set/read,
|
|
|
|
+ // the server does nothing with this apart from keep it.
|
|
|
|
+ const void *
|
|
|
|
+ getUserContext() const
|
|
{
|
|
{
|
|
return UserContext;
|
|
return UserContext;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
protected:
|
|
protected:
|
|
class CivetConnection
|
|
class CivetConnection
|
|
{
|
|
{
|
|
@@ -554,9 +555,9 @@ class CIVETWEB_API CivetServer
|
|
struct mg_context *context;
|
|
struct mg_context *context;
|
|
std::map<struct mg_connection *, class CivetConnection> connections;
|
|
std::map<struct mg_connection *, class CivetConnection> connections;
|
|
|
|
|
|
- // generic user context which can be set/read,
|
|
|
|
- // the server does nothing with this apart from keep it.
|
|
|
|
- const void *UserContext;
|
|
|
|
|
|
+ // generic user context which can be set/read,
|
|
|
|
+ // the server does nothing with this apart from keep it.
|
|
|
|
+ const void *UserContext;
|
|
|
|
|
|
private:
|
|
private:
|
|
/**
|
|
/**
|