Class Ase::WebSocketServer
ClassList > Ase > WebSocketServer
Inherits the following classes: std::enable_shared_from_this< WebSocketServer >
Inherited by the following classes: Ase::WebSocketServerImpl
Public Types
Type | Name |
---|---|
typedef std::function< WebSocketConnectionP(WebSocketConnection::Internals &, int)> | MakeConnection |
typedef std::function< void()> | UnlistenCB |
Public Functions
Type | Name |
---|---|
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 |
Public Static Functions
Type | Name |
---|---|
WebSocketServerP | create (const MakeConnection & make, int logflags=0) |
String | mime_type (const String & ext, bool utf8) |
String | user_agent () |
bool | utf8_validate (const std::string & utf8string) Validate UTF-8 string with websocketpp::utf8_validator. |
Protected Functions
Type | Name |
---|---|
virtual | ~WebSocketServer () |
Protected Static Functions
Type | Name |
---|---|
WebSocketConnection::Internals & | internals (WebSocketConnection & c) |
Public Types Documentation
typedef MakeConnection
using Ase::WebSocketServer::MakeConnection = std::function<WebSocketConnectionP (WebSocketConnection::Internals&, int)>;
typedef UnlistenCB
using Ase::WebSocketServer::UnlistenCB = std::function<void ()>;
Public Functions Documentation
function http_alias
virtual void Ase::WebSocketServer::http_alias (
const String & webdir,
const String & path
) = 0
function http_dir
virtual void Ase::WebSocketServer::http_dir (
const String & path
) = 0
function listen
virtual void Ase::WebSocketServer::listen (
const String & host="",
int port=0,
const UnlistenCB &={}
) = 0
function map_url
virtual String Ase::WebSocketServer::map_url (
const String & urlpath
) = 0
function reset
virtual void Ase::WebSocketServer::reset () = 0
function shutdown
virtual void Ase::WebSocketServer::shutdown () = 0
function url
virtual std::string Ase::WebSocketServer::url () const = 0
Public Static Functions Documentation
function create
static WebSocketServerP Ase::WebSocketServer::create (
const MakeConnection & make,
int logflags=0
)
function mime_type
static String Ase::WebSocketServer::mime_type (
const String & ext,
bool utf8
)
function user_agent
static String Ase::WebSocketServer::user_agent ()
function utf8_validate
static bool Ase::WebSocketServer::utf8_validate (
const std::string & utf8string
)
Protected Functions Documentation
function ~WebSocketServer
virtual Ase::WebSocketServer::~WebSocketServer ()
Protected Static Functions Documentation
function internals
static inline WebSocketConnection::Internals & Ase::WebSocketServer::internals (
WebSocketConnection & c
)
The documentation for this class was generated from the following file /__w/anklang/anklang/ase/websocket.hh