|
simple thread
|
object capable of sending a st::message back to an st::channel
More...
#include <reply.hpp>
Public Member Functions | |
| template<typename T > | |
| bool | send (T &&t) |
send an st::message back to the st::channel More... | |
Static Public Member Functions | |
| template<typename CHANNEL > | |
| static reply | make (CHANNEL &&ch, std::size_t id=0) |
| construct a reply More... | |
object capable of sending a st::message back to an st::channel
This object provides a simple, lightweight way to send messages back to a requestor while abstracting the message passing details.
For example, his object can be the payload st::data of an st::message, allowing a user to forward information back to a requestor.
|
inlinestatic |
construct a reply
| ch | an st::channel to send st::message back to |
| id | unsigned int id of st::message sent back over ch |
|
inline |
send an st::message back to the st::channel
| t | st::message payload data |
true if internal st::channel::send(...) succeeds, else false