udp 3.1.0

A lightweight and efficient Rust library for building UDP servers with request-response handling.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::*;

/// Optional thread-safe read-write locked UDP socket.
pub type OptionArcRwLockUdpSocket = Option<ArcRwLockUdpSocket>;

/// Optional socket address (IP + port).
pub type OptionSocketAddr = Option<SocketAddr>;

/// Optional socket host IP address.
pub type OptionSocketHost = Option<std::net::IpAddr>;

/// Optional socket port number.
pub type OptionSocketPort = Option<u16>;