I was reading about SockFS, and I'm wondering why there seems to be no mount driver for it. That is, if SockFS implements the VFS API for UDP and TCP sockets, why is there no userspace filesystem representation of sockets, such that I could cat /net/tcp/151.101.65.69/80 and echo "GET /v1/users/some-id HTTP/1.1" > /net/tcp/192.168.0.5/8000 or something?
In fact, with Unix socket implementing the same socket API as TCP and UDP sockets, and also having filesystem representations, this makes even less sense.
EDIT: Found out about /proc/*/fd/* socket files/symlinks from What's the meaning of [socket:number] in /proc/pid/fd, though they don't seem very useful since you can't read or write from/to them.
root@drpyser-thinkpad[192.168.8.224] in /proc/1
❯ ll fd/18
lrwx------ root root 64 B Fri Feb 24 13:54:16 2023 fd/18 ⇒ socket:[14810]
root@drpyser-thinkpad[192.168.8.224] in /proc/1
❯ file fd/18
fd/18: symbolic link to socket:[14810]
root@drpyser-thinkpad[192.168.8.224] in /proc/1
❯ socket:[14810]^C
root@drpyser-thinkpad[192.168.8.224] in /proc/1
❯ cat fd/18
cat: fd/18: No such device or address
root@drpyser-thinkpad[192.168.8.224] in /proc/1
✖1 ❯ cat > fd/18
warning: An error occurred while redirecting file 'fd/18'
open: No such device or address
EDIT2: Beside Plan 9, I also found this implementation of the concept for FreeBSD: http://csr.bu.edu/icnp2005/posters/netfs_abstract.pdf.