Crate udptk

Source
Expand description

UDP toolkit

This crate provides an easy-to-use API for sending and listening to UDP packets. It provides a high-level interface and does not expose any low-level details, such as sockets or packet headers.

Enums§

Error
Enumeration of errors that can occur in this crate.

Functions§

listen
Listens on a UDP port until Ctrl+C or terminate signal (on unix platforms) is received. The returned future resolves when either event is triggered or an error occurs. The error is logged but not returned, as the program will shut down anyway.
send
Send UDP packet to a target.

Type Aliases§

Result
A handy type alias for Result<T, udptk::Error>.