home *** CD-ROM | disk | FTP | other *** search
- Path: sky.in-berlin.de!jroger!jroger
- From: jroger@jroger.in-berlin.de (Sebastian Rittau)
- Subject: Re: Checking ports
- References: <65641132%agos001@pn.itnet.it>
- Message-ID: <620.6589T787T2530@jroger.in-berlin.de>
- Newsgroups: comp.sys.amiga.programmer
- X-Newsreader: THOR 2.22 (Amiga;UUCP) *UNREGISTERED*
- Date: 17 Jan 96 04:00:09 CET
-
- In <65641132%agos001@pn.itnet.it> Stefano Agostinelli <agos001@pn.itnet.it> wrote:
-
- >suppose program A launches program B (both at start create a public msgport)
- >and needs to send immediately a message to it;of course A must wait B port
- >creation,but given that B does not know port A name how can A know is safe
- >to send B the message?
- >Thanks in advance.
-
- Hope, I got it right:
-
- A wants to send B a message? What about a busy-loop:
-
- REPEAT
- Delay(5)
- bport:=FindPort('bportname')
- UNTIL bport>0
-
- --
- // Sebastian Rittau jroger@jroger.in-berlin.de
- \X/ http://www.in-berlin.de/User/jroger/index.html
-
-