Flow-IPC 3.0.0
Flow-IPC project: Full implementation reference.
Namespaces | Functions
native_handle.cpp File Reference
#include "ipc/util/native_handle.hpp"
#include "ipc/transport/error.hpp"
#include <flow/error/error.hpp>
#include <boost/functional/hash/hash.hpp>
#include <cerrno>
#include <fcntl.h>
#include <unistd.h>

Go to the source code of this file.

Namespaces

namespace  ipc
 Catch-all namespace for the Flow-IPC project: A library/API in modern C++17 providing high-performance communication between processes.
 
namespace  ipc::util
 Flow-IPC module containing miscellaneous general-use facilities that are ubiquitously used by ~all Flow-IPC modules and/or do not fit into any other Flow-IPC module.
 

Functions

Native_handle ipc::util::disowned_native_handle (Own_native_handle &&src) noexcept
 Returns Native_handle constructed by relieving an existing auto-closing Own_native_handle of its ownership of a particular raw handle and storing it, sans auto-closing protection, in that Native_handle. More...
 
Own_native_handle ipc::util::duped_native_handle (Native_handle src, Error_code *err_code=nullptr)
 Returns Own_native_handle{src.dup(err_code)}: an auto-closing duplicate of src; on error the result is .get().null(). More...
 
size_t ipc::util::hash_value (Native_handle val) noexcept
 Hasher of Native_handle for boost.unordered et al. More...
 
std::ostream & ipc::util::operator<< (std::ostream &os, const Native_handle &val)
 Prints string representation of the given Native_handle to the given ostream. More...