BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Friends | List of all members
fc::http::websocket_server Class Reference

#include <websocket.hpp>

Public Member Functions

 websocket_server (const std::string &forward_header_key)
 
 ~websocket_server ()
 
void on_connection (const on_connection_handler &handler)
 
void listen (uint16_t port)
 
void listen (const fc::ip::endpoint &ep)
 
uint16_t get_listening_port ()
 
void start_accept ()
 
void stop_listening ()
 
void close ()
 

Friends

class detail::websocket_server_impl
 

Detailed Description

Definition at line 53 of file websocket.hpp.

Constructor & Destructor Documentation

◆ websocket_server()

fc::http::websocket_server::websocket_server ( const std::string &  forward_header_key)

Definition at line 636 of file websocket.cpp.

◆ ~websocket_server()

fc::http::websocket_server::~websocket_server ( )

Definition at line 638 of file websocket.cpp.

Member Function Documentation

◆ close()

void fc::http::websocket_server::close ( )

Definition at line 670 of file websocket.cpp.

◆ get_listening_port()

uint16_t fc::http::websocket_server::get_listening_port ( )

Definition at line 655 of file websocket.cpp.

◆ listen() [1/2]

void fc::http::websocket_server::listen ( const fc::ip::endpoint ep)

Definition at line 649 of file websocket.cpp.

◆ listen() [2/2]

void fc::http::websocket_server::listen ( uint16_t  port)

Definition at line 645 of file websocket.cpp.

◆ on_connection()

void fc::http::websocket_server::on_connection ( const on_connection_handler handler)

Definition at line 640 of file websocket.cpp.

◆ start_accept()

void fc::http::websocket_server::start_accept ( )

Definition at line 661 of file websocket.cpp.

◆ stop_listening()

void fc::http::websocket_server::stop_listening ( )

Definition at line 665 of file websocket.cpp.

Friends And Related Function Documentation

◆ detail::websocket_server_impl

friend class detail::websocket_server_impl
friend

Definition at line 69 of file websocket.hpp.


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