Classes | Functions | Variables
test_web_server.cpp File Reference
#include "async_web_server_cpp/http_server.hpp"
#include "async_web_server_cpp/http_reply.hpp"
#include "async_web_server_cpp/websocket_connection.hpp"
#include "async_web_server_cpp/websocket_request_handler.hpp"
#include <signal.h>
#include <ros/package.h>
Include dependency graph for test_web_server.cpp:

Go to the source code of this file.

Classes

class  WebsocketEchoer

Functions

static void http_body_echo (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const std::string &body)
static bool http_path_echo (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const char *begin, const char *end)
static bool http_query_echo (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const char *begin, const char *end)
int main (int argc, char **argv)
void sig_handler (int signo)
WebsocketConnection::MessageHandler websocket_echo (const HttpRequest &request, WebsocketConnectionPtr websocket)

Variables

volatile bool should_shutdown = false

Function Documentation

static void http_body_echo ( const async_web_server_cpp::HttpRequest request,
async_web_server_cpp::HttpConnectionPtr  connection,
const std::string &  body 
) [static]

Definition at line 15 of file test_web_server.cpp.

static bool http_path_echo ( const async_web_server_cpp::HttpRequest request,
async_web_server_cpp::HttpConnectionPtr  connection,
const char *  begin,
const char *  end 
) [static]

Definition at line 22 of file test_web_server.cpp.

static bool http_query_echo ( const async_web_server_cpp::HttpRequest request,
async_web_server_cpp::HttpConnectionPtr  connection,
const char *  begin,
const char *  end 
) [static]

Definition at line 30 of file test_web_server.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 57 of file test_web_server.cpp.

void sig_handler ( int  signo)

Definition at line 11 of file test_web_server.cpp.

Definition at line 50 of file test_web_server.cpp.


Variable Documentation

volatile bool should_shutdown = false

Definition at line 10 of file test_web_server.cpp.



async_web_server_cpp
Author(s): Mitchell Wills
autogenerated on Sat Jun 8 2019 18:56:50