Files
hms-mediaengine/packages/protocol/hms_protocol/__init__.py
T
HMS MediaEngine Agent 9536e08748 Phase 1: IPC-Verbindungsschicht + Build-first-Strategie (ADR-0008)
- ADR-0008: Build-first, gesammelte Windows-Validierung (Auftraggeber-Freigabe)
- ADR-0004 vorläufig: Rust auf GStreamer-D3D11-Elementpfad
- ADR-0005 vorläufig: Nuitka Onefolder
- hms_protocol: IpcServer/IpcClient mit Handshake (hello/welcome),
  Capabilities-Austausch, Heartbeat 500 ms bidirektional, Snapshot/Delta,
  Loopback-only-Enforcement, Re-Sync nach Reconnect, Version-Mismatch-Fehler
- 9 Integrationstests: echter TCP-Loopback, kein Mock
2026-09-11 00:50:03 +02:00

37 lines
817 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""hms_protocol versioniertes IPC (PLAN.md §6.2, ADR-0003).
Lokales TCP auf 127.0.0.1, length-prefixed MessagePack, Protokollversion 1.
Verbindungsschicht: Handshake, Snapshot/Delta, Heartbeat, Re-Sync.
"""
from hms_protocol.connection import (
HandshakeInfo,
IpcClient,
IpcServer,
ProtocolError,
)
from hms_protocol.envelope import Envelope, MessageType
from hms_protocol.framing import (
decode_frame,
encode_frame,
read_frame,
read_frame_async,
write_frame,
)
from hms_protocol.idempotency import IdempotencyRegistry
__all__ = [
"Envelope",
"MessageType",
"encode_frame",
"decode_frame",
"read_frame",
"read_frame_async",
"write_frame",
"IdempotencyRegistry",
"IpcServer",
"IpcClient",
"HandshakeInfo",
"ProtocolError",
]