Use case
Consider a distributed program, where client PCs have GUIs that show the values of variables hosted on the server PC. Suppose the server has to change its IP address.
Current options
Option |
Shortcomings |
Bind the indicator to a Network Item (hard-wiring the address of the server)
|
You'll need to update the server address in every single indicator
|
Write extra code to read the server’s address from a config file, and programmatically do the data binding
|
It’s extra code |
Bind the indicator to a Project Item, and assume that the “My Computer” target refers to the server. Update the server address by updating the .aliases file
|
The client PC can’t have an alias of its own |
Suggestion option
Have separate targets for the Server application and the Client application (each target can have an alias). Bind Client indicators to project variables hosted on the Server (no extra code required). Update the server address by updating the .aliases file (don't need to update each individual indicator).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 4 kudos within 4 years after posting will be automatically declined.