fftp

Crates.iofftp
lib.rsfftp
version0.2.0
sourcesrc
created_at2021-09-26 20:20:55.826548
updated_at2021-11-04 09:14:40.49773
descriptionIn-network file transfer.
homepage
repositoryhttps://github.com/krashanoff/fftp
max_upload_size
id456671
size42,777
(krashanoff)

documentation

README

fftp

fftp is the "Fast File Transport Protocol". It transfers files quickly between computers on a network with low overhead.

Motivation

FTP uses two ports which makes it inconvenient to reverse proxy. HTTP file servers might be too bulky for certain things, and they aren't as fast as FTP. Both use TCP. This is my duct tape and chicken wire compromise.

Use

The client is ff. The server is ffd.

# Create a file.
mkdir test
echo "hi" > test/test.txt

# Start running a server.
ffd MY_LOCAL_IP:8080 test &

# List files available.
ff MY_LOCAL_IP:8080 ls

# Download a file.
ff MY_LOCAL_IP:8080 get test.txt

Goals

  • Minimal communication overhead
  • Fast
  • Maintainable
Commit count: 26

cargo fmt