service.rs — UDP Socket

UdpService is a thin wrapper that binds a UDP socket and holds it in an Arc<UdpSocket> so it can be shared across async tasks. It is registered as Tauri managed state at startup so any command can access the socket via State<'_, UdpService>.

socket2 allows to customize the socket, otherwise the buffer size will be set by the system and be too small


Revision #2
Created 2026-04-14 10:05:00 UTC by Candela Cimadevilla Gonzalez
Updated 2026-05-06 08:37:53 UTC by Candela Cimadevilla Gonzalez