4 ms·
I thought you could listen() accept() in modern awks.
by LispSporks22 3y ago
I thought you could listen() accept() in modern awks.
- tyingq 3y agoSort of. Gawk supports magic file names like "/inet/tcp/8080/0/0" to be a tcp client or server, but you don't get control of accept()...it's all mooshed together. So you can make a slow, single threaded webserver with it. Which is too bad, because the usually shipped gawk extensions also give you fork. If they had separated listen() and accept(), you could actually make a reasonable webserver. See my other comment for an example of what you're limited to.