21#include <flow/error/error.hpp> 
   31  using boost::system::system_error;
 
   37  FLOW_LOG_SET_CONTEXT(logger_ptr, Log_component::S_TRANSPORT);
 
   58  string abstract_namespace_name(
size_t(1), 
'\0'); 
 
   59  abstract_namespace_name += absolute_name.
str(); 
 
   60  FLOW_LOG_TRACE(
"Abstract-namespace (Linux extension) name above consists of 1 NUL + the name " 
   61                 "[" << absolute_name << 
"]; total of [" << abstract_namespace_name.
size() << 
"] bytes.");
 
   64  auto& sys_err_code = *err_code;
 
   69    endpoint.path(abstract_namespace_name);
 
   72  catch (
const system_error& exc)
 
   74    FLOW_LOG_WARNING(
"Unable to set up native local stream endpoint structure; " 
   75                     "could be due to name length; details logged below.");
 
   76    sys_err_code = exc.code();
 
   77    FLOW_ERROR_SYS_ERROR_LOG_WARNING();
 
String-wrapping abstraction representing a name uniquely distinguishing a kernel-persistent entity fr...
const std::string & str() const
Returns (sans copying) ref to immutable entire wrapped name string, suitable to pass into sys calls w...
size_t size() const
Returns str().size().
Additional (versus boost.asio) APIs for advanced work with local stream (Unix domain) sockets includi...
Protocol::endpoint Endpoint
Short-hand for boost.asio Unix domain peer stream-socket endpoint.
Endpoint endpoint_at_shared_name(flow::log::Logger *logger_ptr, const Shared_name &absolute_name, Error_code *err_code)
Returns an Endpoint corresponding to the given absolute Shared_name, so that an Acceptor or Peer_sock...
flow::Error_code Error_code
Short-hand for flow::Error_code which is very common.