flute-0.1.0 has been yanked.
flute
FLUTE - File Delivery over Unidirectional Transport
Massively scalable multicast distribution solution
The library implements a unidirectional file delivery, without the need of a return channel.
RFC
RFC used to implement this library
| RFC | Title | Link |
|---|---|---|
| RFC 6726 | FLUTE - File Delivery over Unidirectional Transport | https://www.rfc-editor.org/rfc/rfc6726.html |
| RFC 5775 | Asynchronous Layered Coding (ALC) Protocol Instantiation | https://www.rfc-editor.org/rfc/rfc5775.html |
| RFC 5052 | Forward Error Correction (FEC) Building Block | https://www.rfc-editor.org/rfc/rfc5052 |
| RFC 5510 | Reed-Solomon Forward Error Correction (FEC) Schemes | https://www.rfc-editor.org/rfc/rfc5510.html |
UDP/IP Multicast files sender
Transfer files over a UDP/IP network
use Sender;
use ObjectDesc;
use CENC;
use UdpSocket;
// Create UDP Socket
let udp_socket = bind.unwrap;
udp_socket.connect.expect;
// Create FLUTE Sender
let tsi = 1;
let fdtid = 1;
let mut sender = new;
// Add object(s) (files) to the FLUTE sender
let obj = create_from_buffer.unwrap;
sender.add_object;
// Always call publish after adding objects
sender.publish;
// Send FLUTE packets over UDP/IP
while let Some = sender.read
UDP/IP Multicast files receiver
Receive files from a UDP/IP network
use ;
use UdpSocket;
// Create UDP/IP socket to receive FLUTE pkt
let udp_socket = bind.expect;
// Create a writer able to write received files to the filesystem
let writer = new
.unwrap_or_else;
// Create a multi-receiver capable of de-multiplexing several FLUTE sessions
let mut receiver = new;
// Receive pkt from UDP/IP socket and push it to the FLUTE receiver
let mut buf = ;
loop
License: MIT