https://github.com/dr-noob/ncp
Newtork copy
https://github.com/dr-noob/ncp
Last synced: about 1 month ago
JSON representation
Newtork copy
- Host: GitHub
- URL: https://github.com/dr-noob/ncp
- Owner: Dr-Noob
- Created: 2018-08-29T14:35:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-20T22:57:18.000Z (about 7 years ago)
- Last Synced: 2025-03-27T07:29:58.313Z (7 months ago)
- Language: C
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ncp
Network copy -- Copy files over the network## Usage
This software can work in two modes:
* **Client**: You choose the file to send and the address to be sent.Usage: **./ncp --addr=IP [--file=FILE] [--port=PORT]**
| Option | Description | Type |
|:----------:|:----------------------------------:|:---------------------------------------------------------------------:|
| --addr | Specify IP address to connect to. | Mandatory. |
| --file | Specify file to be sent. | Optional. If no file is specified, ncp will read from standart input. |
| --port | Specify port to connect. | Optional. If no port is specified, ncp will use the default one. |* **Server**: You listen to a client which will send the file.
Usage: **./ncp --listen [--out=FILE] [--port=PORT]**
| Option | Description | Type |
|:----------:|:----------------------------------------------------------------:|:---------------------------------------------------------------------:|
| --listen | Set server mode. | Mandatory. |
| --out | Specify file name that will be used to save the received file. | Optional. If no file is specified, ncp will write to standart output. |
| --port | Specify port to connect. | Optional. If no port is specified, ncp will use the default one. |* _This options work on both modes:_
| Option | Description | Type |
|:----------:|:----------------------:|:----------:|
| --no-bar | Disable progress bar. | Optional. |## Features
* **Real time progress bar**: While data is on the go, ncp will show a progress bar to help the user understand how file copy is going.
* **Speed and time statistics**: At the end of the transfer, ncp will show time and average speed of the transaction.
* **Hash compare**: At the same time the transfer is taking place, it's also calculating _sha1_ hash of the file being sent(by client) and the hash of the file being received(by the server). At the end, client will send it to the server which will compare both to determine if file was transferred with no errors.
## Dependencies
You need openssl lib headers to compile ncp. If you're using Debian based distributions(eg, Ubuntu), you can install it with:
sudo apt-get install libssl-dev