[DUG] Sending notification between programs

Graham Marsden graham at wk.planet.gen.nz
Wed Aug 18 19:54:58 NZST 2010


Keep it simple .....

 ..... will pass data from A to B - I will probably use a file to put the data in because its quite structured.
B will sleep on a timer loop until this something is triggered.

Why not use the exis the very existance of the data transfer file as the trigger.

Program A creates the file(s) with the data and then goes on with whatever else it needs to do. Perhaps even 
creating another data file or appending to an existing one.

Program B sleeps on a timer, wakes up, checks for the existance of a/the data file(s). If one/some exist then 
process, if not then sleep another cycle.

I have use this method to pass both fax and email files and other messages to a "server". Naming conventions, 
folder locations etc can all be used to do any segregation of users/purposes as required.

Using this method A and B don't even have to be on the same machine.

Hope this helps.

Graham Marsden


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100818/85b1ed5f/attachment.html 


More information about the Delphi mailing list