#include <local_endpoint.hpp>
|
typedef local_connection | type |
| Type of this connection socket component.
|
|
typedef lib::shared_ptr< type > | ptr |
| Type of a shared pointer to this connection socket component.
|
|
typedef lib::asio::io_service * | io_service_ptr |
| Type of a pointer to the Asio io_service being used.
|
|
typedef lib::shared_ptr< lib::asio::io_service::strand > | strand_ptr |
| Type of a pointer to the Asio io_service strand being used.
|
|
typedef lib::asio::local::stream_protocol::socket | socket_type |
| Type of the ASIO socket being used.
|
|
typedef lib::shared_ptr< socket_type > | socket_ptr |
| Type of a shared pointer to the socket being used.
|
|
Definition at line 21 of file local_endpoint.hpp.
◆ io_service_ptr
◆ ptr
◆ socket_ptr
◆ socket_type
◆ strand_ptr
◆ type
◆ local_connection()
websocketpp::transport::asio::basic_socket::local_connection::local_connection |
( |
| ) |
|
|
inlineexplicit |
◆ async_shutdown()
Definition at line 102 of file local_endpoint.hpp.
102 {
103 lib::asio::error_code ec;
104 m_socket->shutdown(lib::asio::ip::tcp::socket::shutdown_both, ec);
105 h(ec);
106 }
◆ cancel_socket()
lib::asio::error_code websocketpp::transport::asio::basic_socket::local_connection::cancel_socket |
( |
| ) |
|
|
inlineprotected |
Definition at line 96 of file local_endpoint.hpp.
96 {
97 lib::asio::error_code ec;
98 m_socket->cancel(ec);
99 return ec;
100 }
◆ get_ec()
lib::error_code websocketpp::transport::asio::basic_socket::local_connection::get_ec |
( |
| ) |
const |
|
inlineprotected |
◆ get_next_layer()
lib::asio::local::stream_protocol::socket & websocketpp::transport::asio::basic_socket::local_connection::get_next_layer |
( |
| ) |
|
|
inline |
◆ get_raw_socket()
lib::asio::local::stream_protocol::socket & websocketpp::transport::asio::basic_socket::local_connection::get_raw_socket |
( |
| ) |
|
|
inline |
◆ get_remote_endpoint()
std::string websocketpp::transport::asio::basic_socket::local_connection::get_remote_endpoint |
( |
lib::error_code & | ec | ) |
const |
|
inline |
◆ get_shared()
ptr websocketpp::transport::asio::basic_socket::local_connection::get_shared |
( |
| ) |
|
|
inline |
◆ get_socket()
lib::asio::local::stream_protocol::socket & websocketpp::transport::asio::basic_socket::local_connection::get_socket |
( |
| ) |
|
|
inline |
◆ init_asio()
lib::error_code websocketpp::transport::asio::basic_socket::local_connection::init_asio |
( |
io_service_ptr | service, |
|
|
strand_ptr | , |
|
|
bool | ) |
|
inlineprotected |
Definition at line 79 of file local_endpoint.hpp.
80 {
81 if (m_state != UNINITIALIZED) {
83 }
84
85 m_socket = lib::make_shared<lib::asio::local::stream_protocol::socket>(*service);
86
87 m_state = READY;
88
89 return lib::error_code();
90 }
@ invalid_state
A function was called in a state that it was illegal to do so.
lib::error_code make_error_code(error::value e)
◆ is_secure()
bool websocketpp::transport::asio::basic_socket::local_connection::is_secure |
( |
| ) |
const |
|
inline |
◆ post_init()
void websocketpp::transport::asio::basic_socket::local_connection::post_init |
( |
init_handler | callback | ) |
|
|
inline |
◆ pre_init()
void websocketpp::transport::asio::basic_socket::local_connection::pre_init |
( |
init_handler | callback | ) |
|
|
inline |
Definition at line 64 of file local_endpoint.hpp.
64 {
65 if (m_state != READY) {
67 return;
68 }
69
70 m_state = READING;
71
72 callback(lib::error_code());
73 }
◆ set_handle()
void websocketpp::transport::asio::basic_socket::local_connection::set_handle |
( |
connection_hdl | hdl | ) |
|
|
inlineprotected |
◆ translate_ec() [1/2]
template<typename ErrorCodeType >
lib::error_code websocketpp::transport::asio::basic_socket::local_connection::translate_ec |
( |
ErrorCodeType | | ) |
|
|
inlineprotected |
Definition at line 113 of file local_endpoint.hpp.
113 {
115 }
@ pass_through
underlying transport pass through
◆ translate_ec() [2/2]
lib::error_code websocketpp::transport::asio::basic_socket::local_connection::translate_ec |
( |
lib::error_code | ec | ) |
|
|
inlineprotected |
The documentation for this class was generated from the following file: