by tyingq · 4y ago · 0 comments
"loadable accept builtin"
Ahh.
Gawk can be a web server also, typically just "as-shipped", without any new extensions. Doesn't scale well though :)
The /inet/tcp/8080/0/0 is a gawk-ism, versus a Linux thing:
https://www.gnu.org/software/gawk/manual/html_node/TCP_002fI...
Unfortunately, gawk doesn't let you control the listen/accept part of it, so it doesn't scale well. Not sure why they did it that way. A separate accept() call would have made it actually usable in a non-toy way.
This is how you get stuff like hiPHoP.