21#ifndef IPC_DOXYGEN_ONLY
22static_assert(
false,
"As of this writing this is a documentation-only \"header\" "
23 "(the \"source\" is for humans and Doxygen only).");
421 template<
typename Task_err>
773 template<
typename Task_err_sz>
776 Task_err_sz&& on_done_func);
A documentation-only concept defining the behavior of an object capable of reliably/in-order receivin...
Native_handle_receiver(Native_handle_receiver &&src)
Move-constructs from src; src becomes as-if default-cted (therefore in NULL state).
bool idle_timer_run(util::Fine_duration timeout=default_value)
In PEER state: Irreversibly enables a conceptual idle timer whose potential side effect is,...
Native_handle_receiver & operator=(const Native_handle_receiver &)=delete
Disallow copying.
static constexpr bool S_META_BLOB_UNDERFLOW_ALLOWED
If false then meta_blob.size() > receive_meta_blob_max_size() in PEER-state async_receive_native_hand...
Native_handle_receiver()
Default ctor: Creates a peer object in NULL (neither connected nor connecting) state.
Native_handle_receiver & operator=(Native_handle_receiver &&src)
Move-assigns from src; *this acts as if destructed; src becomes as-if default-cted (therefore in NULL...
static const Shared_name S_RESOURCE_TYPE_ID
Shared_name relative-folder fragment (no separators) identifying this resource type....
Native_handle_receiver(sync_io::Native_handle_receiver &&sync_io_core_in_peer_state_moved)
sync_io-core-adopting ctor: Creates a peer object in PEER state by subsuming a sync_io core in that s...
bool async_receive_native_handle(Native_handle *target_hndl, const util::Blob_mutable &target_meta_blob, Task_err_sz &&on_done_func)
In PEER state: Asynchronously awaits one discrete message – as sent by the opposing peer via Native_h...
~Native_handle_receiver()
Destroys this peer endpoint which will end the conceptual incoming-direction pipe (in PEER state,...
size_t receive_meta_blob_max_size() const
In PEER state: Returns min target_meta_blob.size() such that (1) async_receive_native_handle() shall ...
Native_handle_receiver(const Native_handle_receiver &)=delete
Disallow copying.
A documentation-only concept defining the behavior of an object capable of reliably/in-order sending ...
Native_handle_sender(Native_handle_sender &&src)
Move-constructs from src; src becomes as-if default-cted (therefore in NULL state).
bool async_end_sending(Task_err &&on_done_func)
Equivalent to send_native_handle() but sends a graceful-close message instead of the usual payload; t...
Native_handle_sender(const Native_handle_sender &)=delete
Disallow copying.
Native_handle_sender(sync_io::Native_handle_sender &&sync_io_core_in_peer_state_moved)
sync_io-core-adopting ctor: Creates a peer object in PEER state by subsuming a sync_io core in that s...
size_t send_meta_blob_max_size() const
In PEER state: Returns max meta_blob.size() such that send_native_handle() shall not fail due to too-...
Native_handle_sender & operator=(Native_handle_sender &&src)
Move-assigns from src; *this acts as if destructed; src becomes as-if default-cted (therefore in NULL...
static const Shared_name S_RESOURCE_TYPE_ID
Shared_name relative-folder fragment (no separators) identifying this resource type....
bool auto_ping(util::Fine_duration period=default_value)
In PEER state: Irreversibly enables periodic auto-pinging of opposing receiver with low-level message...
Native_handle_sender & operator=(const Native_handle_sender &)=delete
Disallow copying.
~Native_handle_sender()
Destroys this peer endpoint which will end the conceptual outgoing-direction pipe (in PEER state,...
bool end_sending()
Equivalent to async_end_sending(F) wherein F() does nothing.
Native_handle_sender()
Default ctor: Creates a peer object in NULL (neither connected nor connecting) state.
bool send_native_handle(Native_handle hndl_or_null, const util::Blob_const &meta_blob, Error_code *err_code=0)
In PEER state: Synchronously, non-blockingly sends one discrete message, reliably/in-order,...
A documentation-only concept defining the behavior of an object that is the sync_io-pattern counterpa...
A documentation-only concept defining the behavior of an object that is the sync_io-pattern counterpa...
String-wrapping abstraction representing a name uniquely distinguishing a kernel-persistent entity fr...
Flow-IPC module providing transmission of structured messages and/or low-level blobs (and more) betwe...
boost::asio::mutable_buffer Blob_mutable
Short-hand for an mutable blob somewhere in memory, stored as exactly a void* and a size_t.
flow::Fine_duration Fine_duration
Short-hand for Flow's Fine_duration.
boost::asio::const_buffer Blob_const
Short-hand for an immutable blob somewhere in memory, stored as exactly a void const * and a size_t.
flow::Error_code Error_code
Short-hand for flow::Error_code which is very common.
A monolayer-thin wrapper around a native handle, a/k/a descriptor a/k/a FD.