Skip to content

Struct Ase::WebSocketServerImpl

ClassList > Ase > WebSocketServerImpl

Inherits the following classes: Ase::WebSocketServer

Public Types

Type Name
typedef std::vector< WebSocketConnectionP > ConVec
typedef std::vector< std::regex > RegexVector

Public Attributes

Type Name
std::vector< std::pair< String, String > > aliases_
String dir_
RegexVector ignores_
std::thread * initialized_thread_ = = nullptr
int logflags_ = = 0
MakeConnection make_con_
ConVec opencons_
String server_url_
WppServer wppserver_

Public Functions

Type Name
WebSocketServerImpl (const MakeConnection & make_con, int logflags)
WebSocketConnection * force_con (WppHdl)
void http_alias (const String & webdir, const String & path) override
void http_dir (const String & path) override
void listen (const String & host, int port, const UnlistenCB & ulcb) override
WebSocketConnectionP make_connection (WppHdl hdl)
String map_url (const String & urlpath) override
void reset () override
void run ()
void setup (const String & host, int port)
void shutdown () override
String url () override const
WppConnectionP wppconp (WppHdl hdl)
void ws_closed (WebSocketConnectionP conp)
void ws_opened (WebSocketConnectionP conp)

Public Types Documentation

typedef ConVec

using Ase::WebSocketServerImpl::ConVec =  std::vector<WebSocketConnectionP>;

typedef RegexVector

using Ase::WebSocketServerImpl::RegexVector =  std::vector<std::regex>;

Public Attributes Documentation

variable aliases_

std::vector<std::pair<String,String> > Ase::WebSocketServerImpl::aliases_;

variable dir_

String Ase::WebSocketServerImpl::dir_;

variable ignores_

RegexVector Ase::WebSocketServerImpl::ignores_;

variable initialized_thread_

std::thread* Ase::WebSocketServerImpl::initialized_thread_;

variable logflags_

int Ase::WebSocketServerImpl::logflags_;

variable make_con_

MakeConnection Ase::WebSocketServerImpl::make_con_;

variable opencons_

ConVec Ase::WebSocketServerImpl::opencons_;

variable server_url_

String Ase::WebSocketServerImpl::server_url_;

variable wppserver_

WppServer Ase::WebSocketServerImpl::wppserver_;

Public Functions Documentation

function WebSocketServerImpl

inline Ase::WebSocketServerImpl::WebSocketServerImpl (
    const MakeConnection & make_con,
    int logflags
) 

function force_con

WebSocketConnection * Ase::WebSocketServerImpl::force_con (
    WppHdl
) 

function http_alias

inline void Ase::WebSocketServerImpl::http_alias (
    const String & webdir,
    const String & path
) override

function http_dir

inline void Ase::WebSocketServerImpl::http_dir (
    const String & path
) override

function listen

inline void Ase::WebSocketServerImpl::listen (
    const String & host,
    int port,
    const UnlistenCB & ulcb
) override

function make_connection

WebSocketConnectionP Ase::WebSocketServerImpl::make_connection (
    WppHdl hdl
) 

function map_url

inline String Ase::WebSocketServerImpl::map_url (
    const String & urlpath
) override

function reset

void Ase::WebSocketServerImpl::reset () override

function run

void Ase::WebSocketServerImpl::run () 

function setup

void Ase::WebSocketServerImpl::setup (
    const String & host,
    int port
) 

function shutdown

inline void Ase::WebSocketServerImpl::shutdown () override

function url

inline String Ase::WebSocketServerImpl::url () override const

function wppconp

inline WppConnectionP Ase::WebSocketServerImpl::wppconp (
    WppHdl hdl
) 

function ws_closed

void Ase::WebSocketServerImpl::ws_closed (
    WebSocketConnectionP conp
) 

function ws_opened

void Ase::WebSocketServerImpl::ws_opened (
    WebSocketConnectionP conp
) 

Friends Documentation

friend WebSocketServer

class Ase::WebSocketServerImpl::WebSocketServer (
    WebSocketServer
) 


The documentation for this class was generated from the following file /__w/anklang/anklang/ase/websocket.cc