Re:Network protocols, sans I/O
by Animats on Monday August 08, 2016 @02:42AM
(#12245842)
"send" and "recv" for sockets are a Berkeleyism from BSD, where networking was an add-on alongside the existing UNIX kernel. The distinction is historical, not functional. "select" works on both file-like objects and socket-like objects on Linux. Under QNX, "write" and "read" work on sockets, and "send" and "recv" are just alternate functions for "write" and "read".
Whether Python should hide that distinction is not clear, but it could.
Whether Python should hide that distinction is not clear, but it could.