Thanks to visit codestin.com
Credit goes to github.com

Skip to content

billvanleeuwen424/ClientServerCommunicationInC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Basic Client-Server File Transfer Using Web Sockets (local machine only)

Description

This repository contains 2 C files, a client and a server. The client will transfer a specified file to the servers directory.

Usage

This code will only run on Unix based systems!

  1. Compile the code using gcc

    gcc server.c -o server
    gcc client.c -o client
  2. Move the binaries into the folder which you want to transfer the file (the client can be anywhere if wanted, this is just for ease of explaination).

  3. Run the server

    ./server
  4. In a seperate teminal window Run the client, pass the file path of your chosen file into it.

    ./client /home/user/Documents/someFile

Demo

alt text alt text

What I learned

  • C Programming
  • Systems Programming on UNIX with C
  • Web Sockets
  • TCP Communication

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages