Return to BSD News archive
Newsgroups: comp.unix.bsd
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!math.fu-berlin.de!easix!flyer!flatlin!bad
From: bad@flatlin.ka.sub.org (Christoph Badura)
Subject: Re: socketpairs
Organization: Guru Systems/Funware Department
Date: Thu, 12 Aug 1993 17:07:04 GMT
Message-ID: <CBnovt.Cwz@flatlin.ka.sub.org>
References: <vijay.745123092@depot.cis.ksu.edu.cis.ksu.edu>
Keywords: fork, socketpair
Lines: 16
In <vijay.745123092@depot.cis.ksu.edu.cis.ksu.edu> vijay@cis.ksu.edu (Vijay.K.Mandava) writes:
> But in the Sun
> OS manual, (Network Programming) sv[0] is used for both reading
> and writing by the parent, and sv[1] is used for both reading and
> writingby the parent.
> How is this possible?
A pipe is a half-duplex device. If you want to pass data back and
forth between parent and child you need two pipes. A socketpair,
however, is a full-duplex device.
--
Christoph Badura --- bad@flatlin.ka.sub.org --- +49 721 606137
Personally, I don't care whether someone is cool enough to quote Doug
Gwyn--I only care whether Doug Gwyn is cool enough to quote. -- Larry Wall