Coder Social home page Coder Social logo

network-file-server's Introduction

Simple Client-Server Application

This repository contains the implementation of a simple network file server using C and socket programming. The application demonstrates basic network communication between a client and a server in a Linux environment.

Server and Client Functionality

Server: Maintains a server_home directory accessible to the client.

Client Commands:

     ls - List subdirectories and files in the current directory.
     cd - Change the current working directory.
     cwd - Show the current working directory path.
     mkdir - Create a subdirectory in the current directory.
     rm - Delete a subdirectory or file in the current directory.
     up - Upload a file from the client to the current directory on the server.
     down - Download a file from the current directory on the server.

Prerequisites

  • C/C++ compiler (gcc or similar)

Installation

  1. Clone the Repository

    First, clone this repository to your local machine using Git:

    git clone [URL to this repo]
  2. Compile the Source Code

    Navigate to the cloned directory, and compile both the server and client applications:

    gcc server.c -o server
    gcc client.c -o client

Running the Application

  1. Start the Server

    In one terminal window, start the server:

    ./server
  2. Run the Client

    Open another terminal window and run the client:

    ./client

    The client will connect to the server and can send above listed commands to the server.

network-file-server's People

Contributors

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