optic-online 0.0.3

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

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.

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");