Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/thefcraft/c-http-server
- Owner: thefcraft
- Created: 2024-04-05T07:31:24.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-21T20:01:55.000Z (7 months ago)
- Last Synced: 2024-04-22T00:58:48.568Z (7 months ago)
- Topics: c-http-server, http-server-library, websocket
- Language: C
- Homepage:
- Size: 11.1 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`