Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
websocketpp::transport::asio::error Namespace Reference

Asio transport errors.

Classes

class  category
 Asio transport error category. More...
 

Enumerations

enum  value {
  general = 1 , invalid_num_bytes , pass_through , proxy_failed ,
  proxy_invalid , invalid_host_service
}
 

Functions

lib::error_category const & get_category ()
 Get a reference to a static copy of the asio transport error category.
 
lib::error_code make_error_code (error::value e)
 Create an error code with the given value and the asio transport category.
 

Enumeration Type Documentation

◆ value

Enumerator
general 

Catch-all error for transport policy errors that don't fit in other categories

invalid_num_bytes 

async_read_at_least call requested more bytes than buffer can store

pass_through 

there was an error in the underlying transport library

proxy_failed 

The connection to the requested proxy server failed.

proxy_invalid 

Invalid Proxy URI.

invalid_host_service 

Invalid host or service.

Definition at line 162 of file base.hpp.

162 {
165 general = 1,
166
169
172
175
178
181};
@ proxy_invalid
Invalid Proxy URI.
Definition base.hpp:177
@ pass_through
there was an error in the underlying transport library
Definition base.hpp:171
@ proxy_failed
The connection to the requested proxy server failed.
Definition base.hpp:174
@ invalid_num_bytes
async_read_at_least call requested more bytes than buffer can store
Definition base.hpp:168
@ invalid_host_service
Invalid host or service.
Definition base.hpp:180

Function Documentation

◆ get_category()

lib::error_category const & websocketpp::transport::asio::error::get_category ( )
inline

Definition at line 211 of file base.hpp.

211 {
212 static category instance;
213 return instance;
214}
Asio transport error category.
Definition base.hpp:184
Here is the caller graph for this function:

◆ make_error_code()

lib::error_code websocketpp::transport::asio::error::make_error_code ( error::value e)
inline

Definition at line 217 of file base.hpp.

217 {
218 return lib::error_code(static_cast<int>(e), get_category());
219}
Here is the call graph for this function:
Here is the caller graph for this function: