ByteBridge is a small Go prototype for sending files over TCP on a local network.
It currently includes:
- A server that listens for incoming TCP connections.
- A client that sends one file to the server.
- A simple protocol: one JSON header, then the raw file bytes.
- Go
1.26.2or a compatible version. makefor the included development commands.
Create the folder used by the server:
mkdir -p files/serverStart the server:
make serverBy default, the server listens on port 4000.
In another terminal, send a file:
make client file=/path/to/fileReceived files are saved as:
files/server/received_<filename>
make fmt
make vet
make server
make client file=/path/to/file
make buildserver
make buildclientBuild outputs are written to:
bin/server
bin/client
cmd/client/ Client entry point
cmd/server/ Server entry point
internals/ TCP, job, and connection code
files/ Local file storage
config.yml Planned configuration
Makefile Development commands
This project is still in active development. The basic single-file transfer flow works.
Planned work includes multiple file transfers, device discovery, checksum validation, progress output, and fuller use of config.yml.