Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | List of all members
Ase::WebSocketServer Class Referenceabstract
Inheritance diagram for Ase::WebSocketServer:
[legend]

Public Types

using MakeConnection = std::function< WebSocketConnectionP(WebSocketConnection::Internals &, int)>
 
using UnlistenCB = std::function< void()>
 

Public Member Functions

virtual void http_dir (const String &path)=0
 
virtual void http_alias (const String &webdir, const String &path)=0
 
virtual String map_url (const String &urlpath)=0
 
virtual int listen_port () const =0
 
virtual std::string url () const =0
 
virtual void listen (const String &host="", int port=0, const UnlistenCB &={})=0
 
virtual void reset ()=0
 
virtual void shutdown ()=0
 
virtual void see_other (const String &uri)=0
 
- Public Member Functions inherited from std::enable_shared_from_this< WebSocketServer >
enable_shared_from_this (T... args)
 
operator= (T... args)
 
shared_from_this (T... args)
 
weak_from_this (T... args)
 
~enable_shared_from_this (T... args)
 

Static Public Member Functions

static WebSocketServerP create (const MakeConnection &make, int logflags=0, const std::string &session_token="")
 
static String user_agent ()
 
static String mime_type (const String &ext, bool utf8)
 
static bool utf8_validate (const std::string &utf8string)
 Validate UTF-8 string with websocketpp::utf8_validator.
 

Static Protected Member Functions

static WebSocketConnection::Internalsinternals (WebSocketConnection &c)
 

Detailed Description

Definition at line 42 of file websocket.hh.

Member Typedef Documentation

◆ MakeConnection

Definition at line 47 of file websocket.hh.

◆ UnlistenCB

Definition at line 48 of file websocket.hh.

Constructor & Destructor Documentation

◆ ~WebSocketServer()

Ase::WebSocketServer::~WebSocketServer ( )
protectedvirtual

Definition at line 600 of file websocket.cc.

Member Function Documentation

◆ create()

WebSocketServerP Ase::WebSocketServer::create ( const MakeConnection make,
int  logflags = 0,
const std::string session_token = "" 
)
static

Definition at line 604 of file websocket.cc.

◆ internals()

static WebSocketConnection::Internals & Ase::WebSocketServer::internals ( WebSocketConnection c)
staticprotected

Definition at line 44 of file websocket.hh.

◆ mime_type()

String Ase::WebSocketServer::mime_type ( const String ext,
bool  utf8 
)
static

Definition at line 625 of file websocket.cc.

◆ user_agent()

String Ase::WebSocketServer::user_agent ( )
static

Definition at line 610 of file websocket.cc.

◆ utf8_validate()

bool Ase::WebSocketServer::utf8_validate ( const std::string utf8string)
static

Validate UTF-8 string with websocketpp::utf8_validator.

Definition at line 617 of file websocket.cc.


The documentation for this class was generated from the following files: