fs-share-utils 0.1.0

A utility library for file sharing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::{net::UdpSocket, thread, time::Duration};

/*
#[test]
fn test_0() {
    let socket = UdpSocket::bind("127.0.0.1:0").unwrap();
    let addr = socket.local_addr().unwrap();
    thread::spawn(move || {
        let _r = Addr::default()
            .set_broadcast_addr(addr)
            .receiver_addr(socket)
            .unwrap();
    });
    thread::sleep(Duration::from_secs(1));
    let _sender = Addr::default().sender_addr().unwrap();
}*/