AdminChannel Module
Low-level client for the Spring/Recoil engine's autohost UDP interface
(feature 039, see specs/039-hub-admin-channel/contracts/autohost-wire.md).
Owns a single UdpClient bound on 127.0.0.1, encode/decode, and a
receive pump on a dedicated thread. Intended to be consumed by
FSBar.Hub.AdminChannelHost, which layers coalescing and hub-level status
semantics on top.
Types
| Type | Description |
Live admin channel. One instance owns one UDP socket and one receive pump. Dispose to close the socket and stop the pump. |
|
|
Outbound hub → engine admin command. Action codes map to
|
|
Inbound engine → hub admin event. Unknown codes are preserved so future engine revisions don't silently vanish from diagnostics. |
|
|
Socket-level state of an AdminChannel.
The hub-level |
Functions and values
| Function or value |
Description
|
|
Binds a fresh UDP socket on
|
Full Usage:
decodeEvent bytes
Parameters:
byte[]
-
The datagram payload (including the leading action code).
Returns: AdminEventIn
|
Decode an inbound UDP datagram from the engine into an
AdminEventIn. Returns
|
|
Backwards-compatible single-datagram encode; returns the first datagram of AdminChannel.encodeCommandToDatagrams.
|
|
Encode an outbound command to one or more UDP text datagrams.
The engine treats inbound autohost datagrams as UTF-8 chat strings;
strings prefixed with
|
FSBarV1_Archived