Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 584 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 584 Bytes

HTTP Web-Server

This is a basic http web server which implements the http protocol fully coded in C.

It responds to request made by client by creating a seperate thread using the pthread library in C.

Uses socket programming to connect two nodes in a network so that they can communicated with each other.

To start the server just compile it on a linux terminal using the following command:

gcc -o server server.c -lpthread
./server

Start the client in a similar way but don't forget to pass the port address:

gcc -o client client.c
./client localhost 9001