php/c++ - Best method for communication between PHP and C++ client (REST, sockets, etc) -


Assume that I have a website written in PHP. A user downloads a C ++ console program from the website and installs it on his computer. Now, I want to enable C ++ console programs (client) from my PHP website (server) to be able to printf () strings. I have thought of using RESS through the service of XML files like:

    

The rest of the advantage is ease of use, its loss is to download the XML file continuously to the C ++ program. Will this be a problem if the user has a limit to internet usage?

There is another solution socket that eliminates the above issue, but, they are more complex and can be blocked by a firewall / router. / P>

My question is whether downloading the XML file from the web server will cause a problem if the user has a limit to internet usage? Besides, is there a compromise between the rest and chairs, or is there any alternative to such communication?

HTTP is a website that is used to access websites.

Comments