21#ifndef IPC_DOXYGEN_ONLY
22# error "As of this writing this is a documentation-only "header" (the "source" is for humans and Doxygen only)."
149 template<
typename Task_err>
298 template<
typename Task_err_sz>
300 Task_err_sz&& on_done_func);
A documentation-only concept defining the behavior of an object capable of reliably/in-order receivin...
Blob_receiver()
Default ctor: Creates a peer object in NULL (neither connected nor connecting) state.
Blob_receiver(const Blob_receiver &)=delete
Disallow copying.
size_t receive_blob_max_size() const
In PEER state: Returns min target_blob.size() such that (1) async_receive_blob() shall not fail with ...
Blob_receiver & operator=(const Blob_receiver &)=delete
Disallow copying.
bool idle_timer_run(util::Fine_duration timeout)
In PEER state: Irreversibly enables a conceptual idle timer whose potential side effect is,...
Blob_receiver & operator=(Blob_receiver &&src)
Move-assigns from src; *this acts as if destructed; src becomes as-if default-cted (therefore in NULL...
Blob_receiver(sync_io::Blob_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...
static const Shared_name S_RESOURCE_TYPE_ID
Shared_name relative-folder fragment (no separators) identifying this resource type....
bool async_receive_blob(const util::Blob_mutable &target_blob, Task_err_sz &&on_done_func)
In PEER state: Asynchronously awaits one discrete message – as sent by the opposing peer via Blob_sen...
Blob_receiver(Blob_receiver &&src)
Move-constructs from src; src becomes as-if default-cted (therefore in NULL state).
static constexpr bool S_BLOB_UNDERFLOW_ALLOWED
If false then blob.size() > receive_blob_max_size() in PEER-state async_receive_blob() shall yield no...
~Blob_receiver()
Destroys this peer endpoint which will end the conceptual incoming-direction pipe (in PEER state,...
A documentation-only concept defining the behavior of an object capable of reliably/in-order sending ...
Blob_sender()
Default ctor: Creates a peer object in NULL (neither connected nor connecting) state.
bool end_sending()
Equivalent to async_end_sending(F) wherein F() does nothing.
Blob_sender(sync_io::Blob_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...
bool async_end_sending(Task_err &&on_done_func)
Equivalent to send_blob() but sends a graceful-close message instead of the usual payload; the opposi...
Blob_sender(Blob_sender &&src)
Move-constructs from src; src becomes as-if default-cted (therefore in NULL state).
Blob_sender & operator=(const Blob_sender &)=delete
Disallow copying.
bool send_blob(const util::Blob_const &blob, Error_code *err_code=0)
In PEER state: Synchronously, non-blockingly sends one discrete message, reliably and in-order,...
~Blob_sender()
Destroys this peer endpoint which will end the conceptual outgoing-direction pipe (in PEER state,...
Blob_sender & operator=(Blob_sender &&src)
Move-assigns from src; *this acts as if destructed; src becomes as-if default-cted (therefore in NULL...
bool auto_ping()
In PEER state: Irreversibly enables periodic auto-pinging of opposing receiver with low-level message...
static const Shared_name S_RESOURCE_TYPE_ID
Shared_name relative-folder fragment (no separators) identifying this resource type....
size_t send_blob_max_size() const
In PEER state: Returns max blob.size() such that send_blob() shall not fail due to too-long payload w...
Blob_sender(const Blob_sender &)=delete
Disallow copying.
A documentation-only concept: what transport::Blob_receiver is to transport::Native_handle_receiver (...
A documentation-only concept: what transport::Blob_sender is to transport::Native_handle_sender (name...
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.