Fuck I have to write a simple HTTP server in C
@replikvlt
Thanks, that will definitely help
@matrix I've practically done it in my sleep
Maybe it's hard if you need to do it for windows, otherwise you basically just copy paste the man page example from bind(2) and then just glue plain text HTTP headers together. It's not hard
@matrix Note it's talking about AF_UNIX and not AF_INET, that's here I think, but largely interchangeable for this if I remember
https://man7.org/linux/man-pages/man3/getaddrinfo.3.html
@applejack It's supposed to run on Linux.
Lol, that's a nice hacky solution
Yeah, seems not that difficult now
@matrix This looks like a fun experiment with bind(). Have fun! =)
@xyfdi I'm going to. Semester hasn't even started yet so there's plenty of time.
@matrix@gameliberty.club it isn't that hard
https://youtu.be/oE6_Ue0ZTHg
Did not C but pretty much uses C linux syscalls