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