Block a user
ZB.MOM.WW.CBDDC.Network (1.0.3)
Published 2026-02-20 13:51:36 -05:00 by dohertj2
Installation
dotnet nuget add source --name dohertj2 --username your_username --password your_token dotnet add package --source dohertj2 --version 1.0.3 ZB.MOM.WW.CBDDC.NetworkAbout this package
Networking layer (TCP/UDP/Gossip) for CBDDC.
ZB.MOM.WW.CBDDC.Network
Networking layer for CBDDC - provides peer-to-peer mesh networking with automatic discovery and synchronization.
What's Included
This package handles all networking for CBDDC:
- UDP Discovery: Automatic peer discovery on LAN via broadcast
- TCP Synchronization: Reliable data sync between nodes
- Gossip Protocol: Efficient update propagation
- Sync Orchestrator: Manages peer connections and sync operations
- Anti-Entropy: Automatic reconciliation between peers
- Resilience: Retry policies, timeouts, error handling
Installation
dotnet add package ZB.MOM.WW.CBDDC.Core
dotnet add package ZB.MOM.WW.CBDDC.Network
dotnet add package ZB.MOM.WW.CBDDC.Persistence.Sqlite
Quick Start
using ZB.MOM.WW.CBDDC.Network;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
// Register networking
services.AddCBDDCNetwork(
nodeId: "my-node",
tcpPort: 5000,
authToken: "shared-secret"
);
var provider = services.BuildServiceProvider();
// Start network node
var node = provider.GetRequiredService<CBDDCNode>();
node.Start();
// Nodes on the same LAN will discover each other automatically!
Features
Automatic Discovery
Nodes broadcast their presence via UDP and automatically connect to peers on the same network.
Secure Synchronization
All nodes must share the same authentication token to sync data.
Scalable Gossip
Updates propagate exponentially - each node tells multiple peers, ensuring fast network-wide propagation.
Documentation
Related Packages
- ZB.MOM.WW.CBDDC.Core - Core database abstractions
- ZB.MOM.WW.CBDDC.Persistence.Sqlite - SQLite storage provider
License
MIT - see LICENSE