Coder Social home page Coder Social logo

tcp-file-transfer-app's Introduction

๐Ÿ“ TCP File Transfer App

This is a CLI application based on client-server model that allows its users to transfer files over the network.


โœจ Description

The application has two mods:

CLIENT - uploads files to the specified server.

SERVER - handles connections with many CLIENTS and downloads files from them.

Uploaded files are stored on the file system of the SERVER.

SERVER provides information about current and average file download speed.

CLIENT provides information about the upload result.


๐Ÿงฐ Technologies

  • Java 17
  • picocli 4.6.3
  • Log4j 2.19.0
  • Lombok 1.18.24

๐Ÿš€ Run

Run the following command from the project root directory:

  • SERVER mode:

./gradle run --args="server --port=SERVER_PORT"

where:

  • SERVER_PORT is a port which the SERVER will be listening on

Example:


./gradle run --args="server --port=12000"

  • CLIENT mode:

./gradle run --args="client --hostname=SERVER_HOSTNAME --port=SERVER_PORT --path=FILE_PATH"

where:

  • SERVER_HOSTNAME is the hostname of the SERVER
  • SERVER_PORT is the port of the SERVER
  • FILE_PATH is the path of the file which will be uploaded on the SERVER

Example:


./gradle run --args="client --hostname=server.com --port=12000 --path=/files/capybara.jpg"


๐Ÿ’ก Usage

SERVER stores uploaded files in {PROJECT_ROOT}/uploads directory.

โš ๏ธ Restrictions on transferred files:

  • Size of the UTF-8 file path <= 4 KB
  • File size <= 1 TB

Press Ctrl+C to stop the application.

tcp-file-transfer-app's People

Contributors

somnushaxxor avatar

Watchers

 avatar

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.