The difference seems to be that zsocket works with Unix domain sockets and, only for incoming connections, sockets already opened and with a file descriptor. I suppose this latter one can be used for any kind of socket if opened before exec'ing zsh.
Re:Sockets in Your Shell
by who23 on Saturday December 05, 2020 @02:27AM
(#25312595)
Hey I'm the author. Yeah, I stumbled on this while doing a little research into zsh socket capabilities, but I decided to exclude it because the post was more about network sockets than Unix domain sockets.
Re:Sockets in Your Shell
by jolmg on Saturday December 05, 2020 @04:12PM
(#25318412)
Yeah, when I originally wrote the comment I thought that it was more generic. It was only later that I saw it was more aimed at domain sockets, and edited that in.
http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-...
The difference seems to be that zsocket works with Unix domain sockets and, only for incoming connections, sockets already opened and with a file descriptor. I suppose this latter one can be used for any kind of socket if opened before exec'ing zsh.