home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / atari / st / tech / 4749 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.5 KB  |  38 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!utcsri!torn!newshost.uwo.ca!uwovax.uwo.ca!7103_2622
  3. From: 7103_2622@uwovax.uwo.ca (Eric Smith)
  4. Subject: Re: MiNT/Pipes question...
  5. Organization: University of Western Ont, London
  6. Date: Fri, 11 Sep 1992 15:48:31 GMT
  7. Message-ID: <1992Sep11.114831.1@uwovax.uwo.ca>
  8. References: <5401@sersun1.essex.ac.uk>
  9. Sender: news@julian.uwo.ca (USENET News System)
  10. Nntp-Posting-Host: hydra.uwo.ca
  11. Lines: 25
  12.  
  13. In article <5401@sersun1.essex.ac.uk>, woocm@essex.ac.uk (Chris Wood) writes:
  14. >     How can two processes communicate under MiNT? I have a major process 
  15. > that I want to act as a server and then have other client processes create
  16. > a pipe somehow between the two. If I know the two respective process ID's 
  17. > can a create a pipe between them somehow?
  18.  
  19. The server is the one that has to create the pipe. In the server you
  20. should have code like:
  21.  
  22.    fd = Fcreate("U:\\PIPE\\SOMENAME",flags);
  23.  
  24. The clients would then open "U:\PIPE\SOMENAME" and write requests to it;
  25. when the server does an Fread() call on the file descriptor it received
  26. above, it will receive those requests. There are various flags that can
  27. be set in the "flags" field; see the MiNT documentation for details, but
  28. likely flags=0 would be sufficient for most applications.
  29.  
  30. The MiNT utility programs lpr and lpd provide an example of how to
  31. do interprocess communication; source code for these is available on
  32. atari.archive in the file mntutl95.zoo.
  33. --
  34. Eric R. Smith                     email:
  35. Dept. of Mathematics            eric.smith@uwo.ca
  36. University of Western Ontario
  37.  
  38.