2026-09-11 00:36:59 +02:00
|
|
|
|
"""hms_protocol – versioniertes IPC (PLAN.md §6.2, ADR-0003).
|
|
|
|
|
|
|
|
|
|
|
|
Lokales TCP auf 127.0.0.1, length-prefixed MessagePack, Protokollversion 1.
|
2026-09-11 00:50:03 +02:00
|
|
|
|
Verbindungsschicht: Handshake, Snapshot/Delta, Heartbeat, Re-Sync.
|
2026-09-11 00:36:59 +02:00
|
|
|
|
"""
|
|
|
|
|
|
|
2026-09-11 00:50:03 +02:00
|
|
|
|
from hms_protocol.connection import (
|
|
|
|
|
|
HandshakeInfo,
|
|
|
|
|
|
IpcClient,
|
|
|
|
|
|
IpcServer,
|
|
|
|
|
|
ProtocolError,
|
|
|
|
|
|
)
|
2026-09-11 00:36:59 +02:00
|
|
|
|
from hms_protocol.envelope import Envelope, MessageType
|
2026-09-11 00:50:03 +02:00
|
|
|
|
from hms_protocol.framing import (
|
|
|
|
|
|
decode_frame,
|
|
|
|
|
|
encode_frame,
|
|
|
|
|
|
read_frame,
|
|
|
|
|
|
read_frame_async,
|
|
|
|
|
|
write_frame,
|
|
|
|
|
|
)
|
2026-09-11 00:36:59 +02:00
|
|
|
|
from hms_protocol.idempotency import IdempotencyRegistry
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
|
|
"Envelope",
|
|
|
|
|
|
"MessageType",
|
|
|
|
|
|
"encode_frame",
|
|
|
|
|
|
"decode_frame",
|
|
|
|
|
|
"read_frame",
|
2026-09-11 00:50:03 +02:00
|
|
|
|
"read_frame_async",
|
2026-09-11 00:36:59 +02:00
|
|
|
|
"write_frame",
|
|
|
|
|
|
"IdempotencyRegistry",
|
2026-09-11 00:50:03 +02:00
|
|
|
|
"IpcServer",
|
|
|
|
|
|
"IpcClient",
|
|
|
|
|
|
"HandshakeInfo",
|
|
|
|
|
|
"ProtocolError",
|
2026-09-11 00:36:59 +02:00
|
|
|
|
]
|