Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thefcraft/c-http-server

Basic http server in c
https://github.com/thefcraft/c-http-server

c-http-server http-server-library websocket

Last synced: 7 days ago
JSON representation

Basic http server in c

Awesome Lists containing this project

README

        

## Run

### in windows

To complile the server.h

`rm -f libserver.a && gcc -c server.c -o server.o -lws2_32 && gcc -shared -o server.dll server.o -lws2_32`

To run the server

`gcc demo.c -L. -lserver && ./a.exe`

### in linux

To complile the server.h

`gcc -c server.c && ar rcs libserver.a server.o`

To run the server

`gcc demo.c -L. -lserver && ./a.out`