Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
control_peer.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include <optional>
7
8namespace pulp::inspect {
9
15
19std::optional<ControlPeerEvidence> observe_control_peer(
20 const events::InterprocessConnection& connection,
21 ControlPeerRole role);
22
26std::optional<ControlPeerEvidence> observe_suspended_control_process(
27 std::int64_t process_id, ControlPeerRole role);
28
31std::optional<VerifiedControlPeerIdentity> verify_control_peer(
32 const events::InterprocessConnection& connection,
33 const ControlPeerExpectation& expectation);
34
39
40} // namespace pulp::inspect
Interprocess connection — send and receive length-prefixed messages.
Definition interprocess_connection.hpp:33
Definition agent_context.hpp:7
std::optional< VerifiedControlPeerIdentity > verify_control_peer(const events::InterprocessConnection &connection, const ControlPeerExpectation &expectation)
Mint a verified identity only when the live carrier evidence exactly matches the broker-owned expecta...
std::optional< ControlPeerEvidence > observe_suspended_control_process(std::int64_t process_id, ControlPeerRole role)
Observe a newly spawned macOS process while it is still kernel-suspended.
ControlProcessLiveness control_peer_process_liveness(const ControlPeerEvidence &evidence)
Conservatively reports whether the kernel process behind previously observed peer evidence is still l...
std::optional< ControlPeerEvidence > observe_control_peer(const events::InterprocessConnection &connection, ControlPeerRole role)
Observe one connected OS-local peer through kernel credentials plus the platform process-generation a...
ControlProcessLiveness
Definition control_identity.hpp:175
ControlPeerRole
Definition control_identity.hpp:44
Evidence observed by the local IPC carrier.
Definition control_identity.hpp:53
Exact broker-owned peer expectation.
Definition control_peer.hpp:12
ControlPeerEvidence evidence
Definition control_peer.hpp:13