I would like to set up a small program that extracts information from a database, and then distributes this information to another program upon request. For example, a program called "Master" will extract data from a database and create a collection of objects (list, array, etc., which works best), and then a program called "Slave" (running from multiple desktop computers) can call the method (ie GetNextRecord) from the "Wizard" to get the next record in the collection.
I would like to be able to allow only one “slave” the ability to call the GetNextRecord method at a time to avoid providing multiple slaves with the same record. The "wizard" will work on a server with a database, and the "Slave" will work on several desktop computers.
Does anyone have an example of this or a tutorial on how to do this?
TIA, Brian Enderle
delphi
Brianke
source share