mctx-core 0.1.1

Runtime-agnostic and portable IPv4 multicast sender library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Architecture

The crate is centered on three types:

- `PublicationConfig`: immutable configuration for one multicast destination
- `Publication`: one ready-to-send non-blocking UDP socket
- `Context`: a lightweight owner for multiple publications

Design choices:

- publications are connected UDP sockets, so repeated sends do not rebuild the
  destination address on the hot path
- sockets are non-blocking by default, which keeps them easy to integrate into
  event loops and async adapters
- the default feature set stays small; metrics and Tokio support are opt-in