Coder Social home page Coder Social logo

sohoxic / connectify Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17 KB

In this project, we implement a File Transfer Protocol (FTP) system for efficient file exchange over a network.

C 98.71% Makefile 1.29%
c-programming computernetworks ftp socket-programming

connectify's Introduction

Connectify

Decription

  • Connectify is a FTP (File Transfer Protocol) server that facilitates seamless file transfer between multiple clients and the server over a network.
  • The server hosts files and allows multiple clients to connect, upload, and download files over TCP sockets. This code doesn't use the standard FTP protocol. This code can only run on Linux (debian-based distros).

Features

  • Upload and Download: Allows users to upload files from the client to the server and download files from the server to the client.
  • Peek: Allows client to view 1st 1kB of his file on server
  • View & Remove: Allows clients to see the names of his files on server and remove them.
  • Security: Implements authentication to ensure the confidentiality of transferred files.
  • Consistency: Server Maintains a Log file for every transaction

FTP Server and Client Setup Guide

Building the Executables

  1. Organize the server.c, common.c, and the Makefile in a folder [X] on PC1.
  2. Organize client.c, common.c, and the Makefile in a folder [Y] on PC2.
  3. Navigate to the respective folder (X/Y) and execute make to build server.out and client.out files.

Setting Up the Server.

make
  1. a.out is created in the server folder.
  2. Create a file named "id_passwd.txt" in folder [X], containing usernames and passwords of multiple clients.
  3. Each entry in id_passwd.txt should follow the format:
[userName]/:[password]
  1. In the same folder [X], create an empty directory with the same name as each client's username for every user.
  2. Launch the server by running ./server.out [ServerPortNo].
./server.out [ServerPortNo]

Setting Up the Client

  1. Only the client.out file is required in the client computer's folder [Y].
  2. To run the client, navigate to folder [Y] and execute ./client.out [ServerIP] [ServerPort].
./client.out [ServerIP] [ServerPort]

Note: Replace terms inside [...] as per your system configuration.

connectify's People

Contributors

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