home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:4004 comp.unix.questions:9557
- Path: sparky!uunet!news.univie.ac.at!blekul11!frmop11!barilvm!bimacs!yedidya
- From: yedidya@bimacs.BITNET (Yedidya Israel)
- Newsgroups: comp.unix.programmer,comp.unix.questions
- Subject: Re: Bidirectional Pipes
- Keywords: pipes
- Message-ID: <4086@bimacs.BITNET>
- Date: 29 Jul 92 13:00:24 GMT
- References: <1992Jul13.175933.26213@dragon.acadiau.ca> <1992Jul14.061826.11689@Unibase.SK.CA> <1992Jul24.101257.12697@cpio1.UUCP>
- Organization: Math department, Bar-Ilan University, Ramat-Gan, ISRAEL
- Lines: 20
-
- In article <1992Jul24.101257.12697@cpio1.UUCP> bernard@cpio1.UUCP (Bernard Fouche) writes:
- >
- >In article <1992Jul14.061826.11689@Unibase.SK.CA>, roe@Unibase.SK.CA (Roe Peterson) writes:
- >> 890025d@dragon.acadiau.ca (Andy DeWolfe) writes:
- >> Sorry, but there is no such beastie as a bi-directional pipe. The
- >> pipe(2) system call will return two file descriptors, one open for
- >> write, and one open for read. Have the reader close the write end, and
- >> the writer close the read end.
- >>
- >> You can't use pipe to communicate in both direction over one file
- >> descriptor.
-
- But socketpair can.
- --
- Israel Yedidya, Phone: 972-3-5318682 or 972-3-5318407/8
- System Administrator, Fax: 972-3-5353325
- Math & CS Department, Email: yedidya@bimacs.cs.biu.ac.il
- Bar-Ilan University, Bitnet: yedidya@bimacs
- Ramat-Gan, ISRAEL. Uucp: ...!uunet!pucc.princeton.edu!bimacs!yedidya
- If someone proves there is no God, I'll stop being religious!
-