Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mr-sunglasses/webserver-in-c
https://github.com/mr-sunglasses/webserver-in-c
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mr-sunglasses/webserver-in-c
- Owner: Mr-Sunglasses
- Created: 2022-12-28T22:47:02.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-17T14:58:03.000Z (9 months ago)
- Last Synced: 2024-06-11T21:29:02.006Z (7 months ago)
- Language: C
- Size: 6.84 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A Simple Webserver Written in C
This is a simple webserver written in the C programming language.
It uses a pool of 10 connections to serve multiple requests concurrently and it keeps track of how much data it has output, printing it to the standard output stream.
# Compiling and Using the System
On a Linux system system simply use the `make` to compile the servern.
On a Mac use this command to compile the server:
`gcc server.c –o server`
To run the server type `./server` into a terminal that is in the directory where the executable file is located.
By default the server runs on port 2001, so to try it out navigate to
`localhost:8080` in a webbrowser
[![forthebadge](https://forthebadge.com/images/badges/made-with-c.svg)](https://forthebadge.com)