linux version yippee
This commit is contained in:
parent
37f4a98791
commit
71fff37a40
4 changed files with 322 additions and 179 deletions
32
README.md
32
README.md
|
@ -1,12 +1,20 @@
|
|||
# meownet 😺
|
||||
an awesome web server that meows at you
|
||||
|
||||
## okay some more detail
|
||||
i built this in c using `winsock2`. why? because i wanted to learn sockets! and my windows machine was the closest subject at the time.
|
||||
|
||||
**Q:** is it very good? **A:** no! but i had fun making it, so idrc
|
||||
|
||||
a fun little foire into getting even more familiar with how web services work. how fun!!
|
||||
|
||||
### building
|
||||
oh yeah you can compile this with `gcc` and a little `gcc -o ./meow.exe ./src/main.c -lws2_32`. i might make this work for mac/linux at some point if i somehow get even more bored :]
|
||||
# meownet 😺
|
||||
an awesome web server that meows at you
|
||||
|
||||
## okay some more detail
|
||||
i originally built this in c using `winsock2`. why? because i wanted to learn sockets! and my windows machine was the closest subject at the time. now this runs the regular linux socket API by default (i left the old windows-specific code in `src/windows.c` if you want to use that!)
|
||||
|
||||
**Q:** is it very good? **A:** no! but i had fun making it, so idrc
|
||||
|
||||
a fun little foire into getting even more familiar with how web services work. how fun!!
|
||||
|
||||
### building
|
||||
oh yeah you can compile this with `gcc` and a little
|
||||
```sh
|
||||
# linux/macos (untested on macos)
|
||||
gcc -o ./meow ./src/main.c
|
||||
```
|
||||
```powershell
|
||||
# windows
|
||||
gcc -o ./meow.exe ./src/windows.c -lws2_32
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue