|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A transport's outbound side of one connection, for what the server sends unasked: events. More...
#include <connection_writer.hpp>
Public Attributes | |
| std::function< void(std::string)> | write |
| Queues one encoded envelope for the connection. May throw when the connection can no longer be written; the server catches it. | |
| std::function< std::size_t()> | backlog |
| Bytes of encoded envelopes handed to the transport for this connection, replies and events alike, and not yet written. Empty reads as 0. May throw; the server catches it and writes nothing. | |
A transport's outbound side of one connection, for what the server sends unasked: events.
Handed to RemoteServer::setConnectionWriter. Both callables run on the server strand, so neither may block: write queues the frame on the transport's own thread, as a reply is queued.
Definition at line 33 of file connection_writer.hpp.
| std::function<void(std::string)> morph::backend::ConnectionWriter::write |
Queues one encoded envelope for the connection. May throw when the connection can no longer be written; the server catches it.
Definition at line 36 of file connection_writer.hpp.
| std::function<std::size_t()> morph::backend::ConnectionWriter::backlog |
Bytes of encoded envelopes handed to the transport for this connection, replies and events alike, and not yet written. Empty reads as 0. May throw; the server catches it and writes nothing.
Definition at line 41 of file connection_writer.hpp.