33 net_flow::
Node(logger_ptr, low_lvl_endpoint, net_env_sim, err_code, opts),
34 m_target_task_engine(target_async_task_engine)
36 FLOW_LOG_INFO(
"Starting net_flow::asio::Node [" <<
static_cast<void*
>(
this) <<
"]; "
37 "saving target Task_engine [" <<
static_cast<void*
>(target_async_task_engine) <<
"].");
49 FLOW_LOG_INFO(
"Object [" <<
this <<
"] has been assigned an Task_engine at [" << target_async_task_engine <<
"]; "
Interface that the user should implement, passing the implementing Logger into logging classes (Flow'...
Objects of this class can be fed to Node to make it internally simulate network conditions like loss,...
A subclass of net_flow::Node that adds the ability to easily and directly use net_flow sockets in gen...
void set_async_task_engine(util::Task_engine *target_async_task_engine)
Overwrites the value to be returned by next async_task_engine().
util::Task_engine * m_target_task_engine
See async_task_engine().
util::Task_engine * async_task_engine()
Pointer (possibly null) for the flow::util::Task_engine used by any coming async I/O calls and inheri...
Node(log::Logger *logger, util::Task_engine *target_async_task_engine, const util::Udp_endpoint &low_lvl_endpoint, Net_env_simulator *net_env_sim=0, Error_code *err_code=0, const Node_options &opts=Node_options())
Constructs Node.
#define FLOW_LOG_INFO(ARG_stream_fragment)
Logs an INFO message into flow::log::Logger *get_logger() with flow::log::Component get_log_component...
Contains classes that add boost.asio integration to the main Flow-protocol classes such as net_flow::...
boost::asio::io_service Task_engine
Short-hand for boost.asio event service, the central class of boost.asio.
boost::asio::ip::udp::endpoint Udp_endpoint
Short-hand for the UDP endpoint (IP/port) type.
boost::system::error_code Error_code
Short-hand for a boost.system error code (which basically encapsulates an integer/enum error code and...
A set of low-level options affecting a single Flow Node, including Peer_socket objects and other obje...