https://github.com/japrozs/pserve
A small and fast multithreaded server in 100 lines of ANSI C
https://github.com/japrozs/pserve
Last synced: 7 days ago
JSON representation
A small and fast multithreaded server in 100 lines of ANSI C
- Host: GitHub
- URL: https://github.com/japrozs/pserve
- Owner: japrozs
- Created: 2022-01-29T07:34:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-29T07:35:55.000Z (over 3 years ago)
- Last Synced: 2025-01-09T01:03:59.636Z (5 months ago)
- Language: C
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pserve
A small and fast multithreaded server written in 100 lines of pure C.
## How it works
```
-> listen for connections
-> receive a connection
-> create a new thread
-> delegate handling the request to that new thread
-> done!
```## Usage
```bash
make
./server# create 6 files (1.c, 2.c, 3.c, 4.c, 5.c, 6.c in the /tmp/testfiles directory)
# in a new window
ruby client.rb
```