home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 4004 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.5 KB

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