Flow 1.0.2
Flow project: Public API.
Classes | Namespaces | Enumerations | Functions
error.hpp File Reference

Classes

struct  boost::system::is_error_code_enum<::flow::net_flow::error::Code >
 Ummm – it specializes this struct to – look – the end result is boost.system uses this as authorization to make enum Code convertible to Error_code. More...
 

Namespaces

namespace  flow
 Catch-all namespace for the Flow project: A collection of various production-quality modules written in modern C++17, originally by ygoldfel.
 
namespace  flow::net_flow
 Flow module containing the API and implementation of the Flow network protocol, a TCP-inspired stream protocol that uses UDP as underlying transport.
 
namespace  flow::net_flow::error
 Namespace containing the net_flow module's extension of boost.system error conventions, so that Flow network protocol API can return codes/messages from within its own new set of error codes/messages.
 
namespace  boost::system
 We may add some ADL-based overloads into this namespace outside flow.
 

Enumerations

enum class  flow::net_flow::error::Code {
  flow::net_flow::error::S_NODE_NOT_RUNNING = 1 , flow::net_flow::error::S_CANNOT_CONNECT_TO_IP_ANY , flow::net_flow::error::S_INVALID_SERVICE_PORT_NUMBER , flow::net_flow::error::S_PORT_TAKEN ,
  flow::net_flow::error::S_INTERNAL_ERROR_PORT_NOT_TAKEN , flow::net_flow::error::S_OUT_OF_PORTS , flow::net_flow::error::S_INTERNAL_ERROR_PORT_COLLISION , flow::net_flow::error::S_CONN_RESET_BAD_PEER_BEHAVIOR ,
  flow::net_flow::error::S_CONN_REFUSED , flow::net_flow::error::S_INTERNAL_ERROR_SYSTEM_ERROR_ASIO_TIMER , flow::net_flow::error::S_CONN_TIMEOUT , flow::net_flow::error::S_CONN_RESET_BY_OTHER_SIDE ,
  flow::net_flow::error::S_CONN_RESET_TOO_MANY_REXMITS , flow::net_flow::error::S_SEQ_NUM_ARITHMETIC_FAILURE , flow::net_flow::error::S_SEQ_NUM_IMPLIES_CONNECTION_COLLISION , flow::net_flow::error::S_NODE_SHUTTING_DOWN ,
  flow::net_flow::error::S_USER_CLOSED_ABRUPTLY , flow::net_flow::error::S_EVENT_SET_CLOSED , flow::net_flow::error::S_EVENT_SET_IMMUTABLE_WHEN_WAITING , flow::net_flow::error::S_EVENT_SET_EVENT_ALREADY_EXISTS ,
  flow::net_flow::error::S_EVENT_SET_EVENT_DOES_NOT_EXIST , flow::net_flow::error::S_EVENT_SET_DOUBLE_WAIT_OR_POLL , flow::net_flow::error::S_EVENT_SET_NO_EVENTS , flow::net_flow::error::S_EVENT_SET_RESULT_CHECK_WHEN_WAITING ,
  flow::net_flow::error::S_CONN_METADATA_TOO_LARGE , flow::net_flow::error::S_STATIC_OPTION_CHANGED , flow::net_flow::error::S_OPTION_CHECK_FAILED , flow::net_flow::error::S_WAIT_INTERRUPTED ,
  flow::net_flow::error::S_WAIT_USER_TIMEOUT
}
 All possible errors returned (via flow::Error_code arguments) by flow::net_flow functions/methods. More...
 

Functions

Error_code flow::net_flow::error::make_error_code (Code err_code)
 Given a Code enum value, creates a lightweight flow::Error_code (a/k/a boost.system error_code) representing that error. More...