Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Starting a web server in OI desktop process
in OpenInsight
Hi,
We need OI to be able to talk to another process running on each user's computer (the other process is actually a phone). To do this, we want to start a web server on a background thread within the OI process (by calling a c# function defined in a dll). I think it will be fine, but could this cause OI to malfunction in some way?
We need OI to be able to talk to another process running on each user's computer (the other process is actually a phone). To do this, we want to start a web server on a background thread within the OI process (by calling a c# function defined in a dll). I think it will be fine, but could this cause OI to malfunction in some way?
Comments
So we could do 3 things
1. Put a http listener (web server) in OI, which will receive the data and then store it in a static variable (c#). Meanwhile, OI will poll this static variable every 5 seconds to retrieve the data.
2. Create a separate process in which the web server runs, and when it receives data write it to a fie, which OI periodically polls.
3. Have one web server that the phone app sends data to. This web server will trigger an OI process to run, which will in turn write the data to an OI table where the key of the table is the IP address of the sender. Meanwhile, each OI workstation will poll this table and lookup if its IP has any data. (We are actually currently doing this and it works, but I don't like it because the IP addresses could change, meaning a workstation receives another workstation's data. As we will soon be processing credit card tokens using this method, I want a safer method).
And no, the phone app does not need to access the state of OI. It just needs to send info to OI.
Your last post said this:
This seems like two different things. Are both true?
We need a certain process running on the user's computer to send data to the OI running on the user's computer. This other process is only capable of making HTTP requests.
Thanks