torrust-actix 4.1.2

A rich, fast and efficient Bittorrent Tracker.
1
2
3
4
5
6
7
8
use std::net::{IpAddr, SocketAddr};
use crate::tracker::structs::torrent_peer::TorrentPeer;

impl TorrentPeer {
    pub fn peer_addr_from_ip_and_port_and_opt_host_ip(remote_ip: IpAddr, port: u16) -> SocketAddr {
        SocketAddr::new(remote_ip, port)
    }
}