10-03-2006 07:42 AM
10-03-2006 05:15 PM
Using Datasocket would be one easy way of handling this. If you want to, you could also go a bit lower and use the TCP functions (that's what DS uses) to do this yourself (assign each program a port to listen at and communicate between those programs). Search the example finder for "TCP" to see some examples. You will then just need to come up with a way to determine which program is the one using equipment. You could probably run another program which would decide (any of the programs can check if it's running when it starts and if not run it).
The program would always listen on a specific port and another program would only have access to the device if it managed to open a connection to the listener and get the answer that it is allowed.