#include "websocket.hh"
Public Types | |
using | MakeConnection = std::function< WebSocketConnectionP(WebSocketConnection::Internals &, int)> |
using | UnlistenCB = std::function< void()> |
Public Member Functions | |
virtual void | http_alias (const String &webdir, const String &path)=0 |
virtual void | http_dir (const String &path)=0 |
virtual void | listen (const String &host="", int port=0, const UnlistenCB &={})=0 |
virtual String | map_url (const String &urlpath)=0 |
virtual void | reset ()=0 |
virtual void | shutdown ()=0 |
virtual std::string | url () const =0 |
Static Public Member Functions | |
static WebSocketServerP | create (const MakeConnection &make, int logflags=0) |
static String | mime_type (const String &ext, bool utf8) |
static String | user_agent () |
static bool | utf8_validate (const std::string &utf8string) |
Protected Member Functions | |
virtual | ~WebSocketServer () |
Static Protected Member Functions | |
static WebSocketConnection::Internals & | internals (WebSocketConnection &c) |
using MakeConnection = std::function<WebSocketConnectionP (WebSocketConnection::Internals&, int)> |
using UnlistenCB = std::function<void ()> |
|
protectedvirtual |
|
staticprotected |
|
pure virtual |
Implemented in WebSocketServerImpl.
Implemented in WebSocketServerImpl.
Implemented in WebSocketServerImpl.
|
pure virtual |
Implemented in WebSocketServerImpl.
|
pure virtual |
Implemented in WebSocketServerImpl.
|
pure virtual |
Implemented in WebSocketServerImpl.
|
pure virtual |
Implemented in WebSocketServerImpl.
|
static |
|
static |
|
static |
Validate UTF-8 string with websocketpp::utf8_validator.