optic-online 0.0.3

UDP networking for Optic engine — background tokio thread with connection management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# optic-online

UDP networking for the Optic engine — background tokio thread with
connection management.

Provides a [`NetworkHandle`] for sending/receiving unreliable messages
over UDP with optional peer tracking and event polling.

```rust
use optic_core::NetworkConfig;
use optic_online::NetworkHandle;

let config = NetworkConfig::host(7777);
let mut net = NetworkHandle::new(config)?;
net.send_all(b"hello peers");
```

[`NetworkHandle`]: https://docs.rs/optic-online/latest/optic_online/handle/struct.NetworkHandle.html