Coder Social home page Coder Social logo

c-tcp-file-transfer's Introduction

c-tcp-file-transfer

Set up:

Clone the repo: ~$ git clone https://github.com/lborg019/c-tcp-file-transfer
Navigate into the folder: ~$ cd c-tcp-file-transfer
Compile the code with Makefile: ~$ make
First, run the server in a terminal window, don't forget to specify the port (e.g. 5555): ~$ ./ftpserver 5555
(The server will automatically run on its local loopback IP: 127.0.0.1 or localhost)
On another terminal window, pane, or tab, run the client: ~$ ./ftpclient localhost 5555

If the client connects successfully, it will prompt you for a message. Here's a list with the possible commands:

  • ~$ ls-remote lists files available in the server (remotely)
  • ~$ ls-local lists files available in the client (locally)
  • ~$ get filename.extension download remote file to client
  • ~$ put filename.extension upload local file to server
  • ~$ exit exit gracefully

For the sake of the example, client files are located in ./folder-local/
Server files are located in ./folder-remote/. Feel free to change these according to your needs as long as your folders are not root access only.
Should work in any Unix system

How it works:

Sequence Diagram sequence-diagram.png

c-tcp-file-transfer's People

Stargazers

 avatar  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.