High-Performance Protocol Bridge for HydraMesh Compatibility
448
High-Performance Protocol Bridge for HydraMesh Compatibility
Copyright (c) 2026 DeMoD LLC. All rights reserved.
Licensed under the BSD-3-Clause License.
The DCF Standalone Shim is a lightweight, asynchronous UDP relay designed to bridge the gap between legacy game engine network protocols (e.g., Zandronum, Doom, Quake) and the DeMoD Communications Framework (DCF) HydraMesh binary protocol.
It functions as a bidirectional tunnel that:
Ingress (Legacy -> DCF): Wraps raw UDP datagrams into HydraMesh-compliant ProtoMessage envelopes.
This architecture allows developers to integrate legacy systems into a DCF mesh without modifying the original game source code or the core DCF node logic.
cargo build --release
To bridge a Zandronum client (port 9999) to a local DCF Node (port 7777):
./target/release/dcf-shim --ingress-port 9999 --node-target 127.0.0.1:7777
The shim is best deployed as a sidecar container alongside your DCF node.
docker build -t demod/dcf-shim:latest .
To ensure minimal latency and direct access to local DCF nodes:
docker run -d --name dcf-shim \
--network host \
demod/dcf-shim:latest \
--ingress-port 9999 \
--node-target 127.0.0.1:7777
| Argument | Environment Variable | Default | Description |
|---|---|---|---|
--ingress-port | SHIM_INGRESS_PORT | 9999 | UDP port for game client connections. |
--node-target | SHIM_NODE_TARGET | 127.0.0.1:7777 | The socket address of the DCF Node. |
--log-level | RUST_LOG | info | Logging verbosity (error, warn, info, debug). |
The shim utilizes Message Type 2 (AUDIO) for raw byte transport. This type is optimized for high-frequency data streams and allows the core DCF Node to handle game data without requiring a specific protobuf schema for every game event.
All packets forwarded to the Node contain the standard 17-byte HydraMesh header:
BSD 3-Clause License
Copyright (c) 2026, DeMoD LLC All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Content type
Image
Digest
sha256:7161dced2…
Size
4.6 MB
Last updated
8 months ago
docker pull alh477/dcf-shim