Skip to main content

Crate lightyear_udp

Crate lightyear_udp 

Source
Expand description

UDP transport for Lightyear links.

This crate provides UdpIo, a std::net::UdpSocket-backed transport for Lightyear’s transport-neutral Link buffers. UDP is connectionless and packet-oriented: Lightyear’s higher-level connection, reliability, replication, and message layers are responsible for any semantics above raw datagram delivery.

UdpPlugin handles single-peer UDP link entities. With the server feature enabled, the server module provides server::ServerUdpIo and ServerUdpPlugin for a listening server socket that creates one child Link per remote address.

Modules§

prelude
Re-exports commonly needed by applications and transport setup code.
server
Server-side UDP socket support.

Structs§

UdpIo
Single-peer UDP socket transport component.
UdpPlugin
Bevy plugin that integrates single-peer UDP sockets with Lightyear links.

Enums§

UdpError
Errors produced while starting UDP transport entities.