gotransfer

command module
v0.0.0-...-4b87c6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2025 License: MIT Imports: 5 Imported by: 0

README

gotransfer

An RPC-based file transfer client and server written in Go.

How to Build

Clone the repository and run the following command to build the binary:

go build

This will generate an executable file named gotransfer.

How to Use

gotransfer operates in two modes: client and server.

Server

To serve files, start the application in server mode.

./gotransfer -mode server -dir /path/to/serve/files -addr :12427
  • -mode: Set to server.
  • -dir: The directory containing the files to be served (defaults to ./).
  • -addr: The address and port for the server to listen on (defaults to :12427).
Client

To download a file from the server, start the application in client mode.

./gotransfer -mode client -remotefile a.txt -localfile b.txt -addr 127.0.0.1:12427

This will download a.txt from the server and save it as b.txt on the client side.

Command-line Flags

Flag Description Default Value Mode
-mode The execution mode (client or server) client Both
-addr The address for the server to listen on, or for the client to connect to :12427 Both
-dir The directory from which the server serves files ./ Server
-remotefile The name of the remote file to download "" Client
-localfile The name of the local file to save as (defaults to the value of -remotefile) "" Client
-resumeId The session ID to resume a download 0 Client

Documentation

Overview

gotransfer is a file transfer utility.

It can be run as a server to serve files from a directory, or as a client to download files from a server.

Directories

Path Synopsis
Package transfer provides client and server for file transfer.
Package transfer provides client and server for file transfer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL