Giter Club home page Giter Club logo

ncp's Introduction

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

ncp's People

Contributors

dr-noob avatar

Watchers

 avatar  avatar

ncp's Issues

Add --force option

Add --force option to make server force to truncate specified file, to write new file here

Invalid average speed

If file is small and time needed to transfer it is less than a 0.00 seconds, average speed is invalid(showing bad network speed) Last seen on client side

Message protocol

Add message protocol between client and server to report erros and other stuff

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.