Fuck I have to write a simple HTTP server in C :blobpanic:

@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

man7.org/linux/man-pages/man2/

Follow

@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
man7.org/linux/man-pages/man3/

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.