Hello. First some props: I love B4A. As a .Net programmer, this was the easiest leap I have ever made.
Here is the scenario: My company makes high-end, super expensive, Linux-based music servers. The Android app I am writing is going to control the 4 independent audio zones. The server produces realtime data on an XML socket which I have successfully implemented. This provides me with the realtime feedback of the players, time elapsed, current song details, etc.
In the course of communicating with the server, I need to make numerous calls for "small" information. For example, if I want to know the name of the server, I need to send a request to http://192.168.10.101/ini.php?cmd=get§ion=systeminfo&key=unitname
The response will come back as a string.
So the question: Without synchronous communication, how do I abstract a function such as GetIni(section as String, key as String) As String so that it can return to the callers who need the Ini value to make a decision?
Here is the scenario: My company makes high-end, super expensive, Linux-based music servers. The Android app I am writing is going to control the 4 independent audio zones. The server produces realtime data on an XML socket which I have successfully implemented. This provides me with the realtime feedback of the players, time elapsed, current song details, etc.
In the course of communicating with the server, I need to make numerous calls for "small" information. For example, if I want to know the name of the server, I need to send a request to http://192.168.10.101/ini.php?cmd=get§ion=systeminfo&key=unitname
The response will come back as a string.
So the question: Without synchronous communication, how do I abstract a function such as GetIni(section as String, key as String) As String so that it can return to the callers who need the Ini value to make a decision?