Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::asio::error Namespace Reference

Enumerations

enum  basic_errors {
  access_denied = EACCES,
  address_family_not_supported = EAFNOSUPPORT,
  address_in_use = EADDRINUSE,
  already_connected = EISCONN,
  already_started = EALREADY,
  broken_pipe,
  connection_aborted = ECONNABORTED,
  connection_refused = ECONNREFUSED,
  connection_reset = ECONNRESET,
  bad_descriptor = EBADF,
  fault = EFAULT,
  host_unreachable = EHOSTUNREACH,
  in_progress = EINPROGRESS,
  interrupted = EINTR,
  invalid_argument = EINVAL,
  message_size = EMSGSIZE,
  name_too_long = ENAMETOOLONG,
  network_down = ENETDOWN,
  network_reset = ENETRESET,
  network_unreachable = ENETUNREACH,
  no_descriptors = EMFILE,
  no_buffer_space = ENOBUFS,
  no_memory,
  no_permission,
  no_protocol_option = ENOPROTOOPT,
  not_connected = ENOTCONN,
  not_socket = ENOTSOCK,
  operation_aborted,
  operation_not_supported = EOPNOTSUPP,
  shut_down = ESHUTDOWN,
  timed_out = ETIMEDOUT,
  try_again,
  would_block = EWOULDBLOCK
}
 
enum  netdb_errors {
  host_not_found = HOST_NOT_FOUND,
  host_not_found_try_again = TRY_AGAIN,
  no_data = NO_DATA,
  no_recovery = NO_RECOVERY
}
 
enum  addrinfo_errors {
  service_not_found,
  socket_type_not_supported
}
 
enum  misc_errors {
  already_open = 1,
  eof,
  not_found,
  fd_set_failure
}
 
enum  ssl_errors
 

Functions

const
boost::system::error_category
get_system_category ()
 
BOOST_ASIO_DECL const
boost::system::error_category
get_netdb_category ()
 
BOOST_ASIO_DECL const
boost::system::error_category
get_addrinfo_category ()
 
BOOST_ASIO_DECL const
boost::system::error_category
get_misc_category ()
 
boost::system::error_code make_error_code (basic_errors e)
 
boost::system::error_code make_error_code (netdb_errors e)
 
boost::system::error_code make_error_code (addrinfo_errors e)
 
boost::system::error_code make_error_code (misc_errors e)
 
BOOST_ASIO_DECL const
boost::system::error_category
get_ssl_category ()
 
boost::system::error_code make_error_code (ssl_errors e)
 

Enumeration Type Documentation

Enumerator
service_not_found 

The service is not supported for the given socket type.

socket_type_not_supported 

The socket type is not supported.

Enumerator
access_denied 

Permission denied.

address_family_not_supported 

Address family not supported by protocol.

address_in_use 

Address already in use.

already_connected 

Transport endpoint is already connected.

already_started 

Operation already in progress.

broken_pipe 

Broken pipe.

connection_aborted 

A connection has been aborted.

connection_refused 

Connection refused.

connection_reset 

Connection reset by peer.

bad_descriptor 

Bad file descriptor.

fault 

Bad address.

host_unreachable 

No route to host.

in_progress 

Operation now in progress.

interrupted 

Interrupted system call.

invalid_argument 

Invalid argument.

message_size 

Message too long.

name_too_long 

The name was too long.

network_down 

Network is down.

network_reset 

Network dropped connection on reset.

network_unreachable 

Network is unreachable.

no_descriptors 

Too many open files.

no_buffer_space 

No buffer space available.

no_memory 

Cannot allocate memory.

no_permission 

Operation not permitted.

no_protocol_option 

Protocol not available.

not_connected 

Transport endpoint is not connected.

not_socket 

Socket operation on non-socket.

operation_aborted 

Operation cancelled.

operation_not_supported 

Operation not supported.

shut_down 

Cannot send after transport endpoint shutdown.

timed_out 

Connection timed out.

try_again 

Resource temporarily unavailable.

would_block 

The socket is marked non-blocking and the requested operation would block.

Enumerator
already_open 

Already open.

eof 

End of file or stream.

not_found 

Element not found.

fd_set_failure 

The descriptor cannot fit into the select system call's fd_set.

Enumerator
host_not_found 

Host not found (authoritative).

host_not_found_try_again 

Host not found (non-authoritative).

no_data 

The query is valid but does not have associated address data.

no_recovery 

A non-recoverable error occurred.

Function Documentation

BOOST_ASIO_DECL const boost::system::error_category& boost::asio::error::get_addrinfo_category ( )

Referenced by make_error_code().

BOOST_ASIO_DECL const boost::system::error_category& boost::asio::error::get_misc_category ( )

Referenced by make_error_code().

BOOST_ASIO_DECL const boost::system::error_category& boost::asio::error::get_netdb_category ( )

Referenced by make_error_code().

BOOST_ASIO_DECL const boost::system::error_category& boost::asio::error::get_ssl_category ( )

Referenced by make_error_code().

const boost::system::error_category& boost::asio::error::get_system_category ( )
inline
boost::system::error_code boost::asio::error::make_error_code ( ssl_errors  e)
inline

References get_ssl_category().

boost::system::error_code boost::asio::error::make_error_code ( basic_errors  e)
inline

References get_system_category().

boost::system::error_code boost::asio::error::make_error_code ( netdb_errors  e)
inline

References get_netdb_category().

boost::system::error_code boost::asio::error::make_error_code ( addrinfo_errors  e)
inline
boost::system::error_code boost::asio::error::make_error_code ( misc_errors  e)
inline

References get_misc_category().