Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
message_channel.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <functional>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

struct  pulp::runtime::Message
 A single structured message as delivered by the channel. More...
class  pulp::runtime::MessageChannel
 Abstract base for message-oriented channels. More...

Namespaces

namespace  pulp
namespace  pulp::runtime

Typedefs

using pulp::runtime::MessageCallback = std::function<void(const Message& message)>
 Called when the channel receives a complete message.
using pulp::runtime::ChannelClosedCallback = std::function<void()>
 Called once when the channel transitions to a closed state — either the peer closed, the transport errored, or close() was invoked.
using pulp::runtime::ChannelErrorCallback = std::function<void(std::string_view reason)>
 Called when a transport-level error occurs.
using pulp::runtime::MessageExecutor = std::function<void(std::function<void()>)>
 Executor used to dispatch callbacks off whichever worker thread the channel runs internally.

Enumerations

enum class  pulp::runtime::MessageKind : uint8_t { pulp::runtime::Binary , pulp::runtime::Text }
 Classification of a delivered message. More...