[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The primitiveness of pipe
> Of course, pipe(2) is nice, but it would be nice to also have a full duplex
> hook available, too. I.e., socketpair() or STREAMS pipe.
would a full duplex connection really be useful when used
from a shell ? it's useful between co-operating programs,
certainly, but the power of the pipe is the fact that most
programs conform to the 'stdin = 0, stdout = 1' convention -
any program that can talk down a full duplex connection
is likely to _know_ it's talking that way, in which case it
can probably open the connection itself!
(if it doesn't, you can probably make do with a simple
pipe running in each direction, anyway)
rog.