torrust-actix 4.2.15

A rich, fast and efficient Bittorrent Tracker.
use std::net::SocketAddr;
use std::sync::Arc;
use tokio::net::UdpSocket;
use crate::config::enums::udp_receive_method::UdpReceiveMethod;
use crate::tracker::structs::torrent_tracker::TorrentTracker;

#[derive(Debug)]
pub struct UdpServer {
    pub(crate) sockets: Vec<Arc<UdpSocket>>,
    pub(crate) bind_address: SocketAddr,
    pub(crate) recv_buffer_size: usize,
    pub(crate) send_buffer_size: usize,
    pub(crate) reuse_address: bool,
    pub(crate) udp_threads: usize,
    pub(crate) worker_threads: usize,
    pub(crate) tracker: Arc<TorrentTracker>,
    pub(crate) use_payload_ip: bool,
    pub(crate) simple_proxy_protocol: bool,
    pub(crate) receive_method: UdpReceiveMethod,
}