ashishtrivedi16 / http-server

Contains the implementation of a simple http web server which uses socket programming to respond to requests and is multi threaded

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Contains the implementation of a simple http web server which uses socket programming to respond to requests and is multi threaded


Languages

Language:C 99.4%Language:HTML 0.6%