krashanoff / fftp

Simple in-network file transfer with barely any overhead.

Home Page:https://crates.io/crates/fftp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple in-network file transfer with barely any overhead.

https://crates.io/crates/fftp

License:MIT License


Languages

Language:Rust 100.0%