#include "server.h"#include <chrono>#include <condition_variable>#include <cstdio>#include <mutex>#include <sstream>#include <thread>#include "mongoose.h"#include <time.h>
Go to the source code of this file.
Macros | |
| #define | SERVER_PORT "8080" |
Functions | |
| std::string | base64_decode (std::string const &encoded_string) |
| static int | basicAuth (struct mg_connection *conn) |
| static int | basicCookies (struct mg_connection *conn) |
| static int | basicJson (struct mg_connection *conn) |
| static int | bodyGet (struct mg_connection *conn) |
| static int | checkBasicCookies (struct mg_connection *conn) |
| static int | checkV1Cookies (struct mg_connection *conn) |
| static int | deleteRequest (struct mg_connection *conn) |
| static int | deleteUnallowedRequest (struct mg_connection *conn) |
| static int | digestAuth (struct mg_connection *conn) |
| static int | evHandler (struct mg_connection *conn, enum mg_event ev) |
| static int | formPost (struct mg_connection *conn) |
| static int | headerReflect (struct mg_connection *conn) |
| static int | hello (struct mg_connection *conn) |
| static bool | is_base64 (unsigned char c) |
| static int | jsonPost (struct mg_connection *conn) |
| static int | lowercase (const char *s) |
| static int | lowSpeed (struct mg_connection *conn) |
| static int | lowSpeedBytes (struct mg_connection *conn) |
| static int | mg_strncasecmp (const char *s1, const char *s2, size_t len) |
| static int | options (struct mg_connection *conn) |
| static int | patch (struct mg_connection *conn) |
| static int | patchUnallowed (struct mg_connection *conn) |
| static int | permanentRedirect (struct mg_connection *conn) |
| static int | put (struct mg_connection *conn) |
| static int | putUnallowed (struct mg_connection *conn) |
| void | runServer (struct mg_server *server) |
| static int | temporaryRedirect (struct mg_connection *conn) |
| static int | timeout (struct mg_connection *conn) |
| static int | twoRedirects (struct mg_connection *conn) |
| static int | urlPost (struct mg_connection *conn) |
| static int | v1Cookies (struct mg_connection *conn) |
Variables | |
| static const std::string | base64_chars |
| std::condition_variable | server_cv |
| std::mutex | server_mutex |
| std::mutex | shutdown_mutex |
| #define SERVER_PORT "8080" |
Definition at line 14 of file server.cpp.
| std::string base64_decode | ( | std::string const & | encoded_string | ) |
Definition at line 637 of file server.cpp.
|
static |
Definition at line 162 of file server.cpp.
|
static |
Definition at line 96 of file server.cpp.
|
static |
Definition at line 205 of file server.cpp.
|
static |
Definition at line 268 of file server.cpp.
|
static |
Definition at line 127 of file server.cpp.
|
static |
Definition at line 145 of file server.cpp.
|
static |
Definition at line 380 of file server.cpp.
|
static |
Definition at line 411 of file server.cpp.
|
static |
Definition at line 184 of file server.cpp.
|
static |
Definition at line 524 of file server.cpp.
|
static |
Definition at line 329 of file server.cpp.
|
static |
Definition at line 227 of file server.cpp.
|
static |
Definition at line 48 of file server.cpp.
|
inlinestatic |
Definition at line 633 of file server.cpp.
|
static |
Definition at line 305 of file server.cpp.
|
static |
Definition at line 685 of file server.cpp.
|
static |
Definition at line 76 of file server.cpp.
|
static |
Definition at line 85 of file server.cpp.
|
static |
Definition at line 689 of file server.cpp.
|
static |
Definition at line 29 of file server.cpp.
|
static |
Definition at line 426 of file server.cpp.
|
static |
Definition at line 460 of file server.cpp.
|
static |
Definition at line 252 of file server.cpp.
|
static |
Definition at line 475 of file server.cpp.
|
static |
Definition at line 509 of file server.cpp.
| void runServer | ( | struct mg_server * | server | ) |
Definition at line 593 of file server.cpp.
|
static |
Definition at line 244 of file server.cpp.
|
static |
Definition at line 67 of file server.cpp.
|
static |
Definition at line 260 of file server.cpp.
|
static |
Definition at line 278 of file server.cpp.
|
static |
Definition at line 112 of file server.cpp.
|
static |
Definition at line 20 of file server.cpp.
| std::condition_variable server_cv |
Definition at line 18 of file server.cpp.
| std::mutex server_mutex |
Definition at line 17 of file server.cpp.
| std::mutex shutdown_mutex |
Definition at line 16 of file server.cpp.