Code Monkey home page Code Monkey logo

archidog's Introduction

archidog file storage

archidog file storage

Description

This is an asynchronous archive server with a thread pool.

The server will archive the stream received from the client and store some files:

Install

https://www.ics.uci.edu/~pattis/common/handouts/mingweclipse/mingw.html

https://gist.github.com/sim642/29caef3cc8afaa273ce6

https://stackoverflow.com/questions/36519453/setup-boost-in-clion

Commands

  • "zip <name> <bytes_size>" - then the client sends a byte stream, the server archives it and saves the file.

  • "get <name>" – the client requests an archived file by name,

  • "zip-and-get <name> <bytes_size>" – the server simultaneously receives, archives, and sends back the compressed data to the client.

  • "unzip <name> <byte_size>" - then the client sends a byte stream, the server unarchives it and saves the file.

  • "unzip-and-get <name> <bytes_size>" – the server simultaneously receives, unarchives, and sends back the compressed data to the client.

Server Configuration

Start ./server

Arguments Description
-d --dir=<path> path to the server folder where to save files (future)
-i --ip=<IP> IP address on which the server listener works
-p --port=<uint> port on which the server listener works
-n --maxnfiles=<uint> maximum number of files a client can save
--r --reqspermin=<uint> maximum number of archiving requests from 1 client in 1 minute
-w --workers=<uint> number of threads
-v --verbose print detailed operations being performed by the server to stdout (stderr), without this flag print only errors
-h --help print to the console arguments, how to use the program

archidog's People

Contributors

islomkhodja avatar

Stargazers

Muhammad Abdumalik 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.