Bunch more control plane work, and shelve old UI -- React FTW.

This commit is contained in:
Adam Ierymenko 2015-04-14 13:56:28 -07:00
parent a2605561af
commit 1cfa67bbdd
43 changed files with 233 additions and 120 deletions

View file

@ -37,6 +37,7 @@
namespace ZeroTier {
class Node;
struct InetAddress;
/**
* HTTP control plane and static web server
@ -44,12 +45,13 @@ class Node;
class ControlPlane
{
public:
ControlPlane(Node *n,const std::set<std::string> atoks);
ControlPlane(Node *n);
~ControlPlane();
/**
* Handle HTTP request
*
* @param fromAddress Originating IP address of request
* @param httpMethod HTTP method (as defined in ext/http-parser/http_parser.h)
* @param path Request path
* @param headers Request headers
@ -59,6 +61,7 @@ public:
* @return HTTP response code
*/
unsigned int handleRequest(
const InetAddress &fromAddress,
unsigned int httpMethod,
const std::string &path,
const std::map<std::string,std::string> &headers,