encapsulate(1) on Linux
The text fcb75f3ecdd6, as Debian 4.0 (Etch), Debian 3.1 (Sarge) shipped it.
multiplex several channels over a single socket with sampling of remote process exit status, and provide conversation termination without closing the socket. netpipes 4.2