torrust-actix 4.1.2

A rich, fast and efficient Bittorrent Tracker.
1
2
3
4
5
6
7
8
9
10
11
12
use std::net::SocketAddr;
use std::sync::Arc;
use tokio::net::UdpSocket;
use crate::udp::udp::MAX_PACKET_SIZE;

#[derive(Debug, Clone)]
pub struct UdpPacket {
    pub remote_addr: SocketAddr,
    pub data: [u8; MAX_PACKET_SIZE],
    pub data_len: usize,
    pub socket: Arc<UdpSocket>,
}