Crate lightyear_udp

Source
Expand description

§Lightyear UDP Transport

This crate provides a UDP transport layer for Lightyear. It defines UdpIo which uses std::net::UdpSocket for sending and receiving raw byte payloads over UDP. This is a common and often preferred transport for real-time games due to its low overhead.

The UdpPlugin integrates this transport into a Bevy application, managing the lifecycle of UDP sockets and handling the IO operations in conjunction with Lightyear’s Link component.

It also includes server-specific UDP IO handling when the “server” feature is enabled.

Modules§

prelude
Commonly used items for UDP transport in Lightyear.
server
Provides server-specific UDP IO functionalities. This module is only available when the “server” feature is enabled.

Structs§

UdpIo
Component that manages a UDP socket for network communication.
UdpPlugin
Bevy plugin to integrate UDP-based IO with Lightyear.

Enums§

UdpError
Errors related to the client connection