I have a constantly running Serverprogram (C # /. NET 2.0 on Linux with mono), and I want to connect to it using PHP Script to display status information on the website.
The goal is to create (sort) a Realtime Browserame (No Flash, no Silverlight), and I want to use PHP Script to get the necessary information from C # GameServer, that is, the current device positions, player resources, rating, visible map, etc. .d. Information is updated every second or even faster, but actions can take hours or even days (for example, a study can take a week)
Are there libraries that allow me to easily transfer information between these two parts of the program?
My thoughts:
Using the embedded WebServer and connecting via PHP SoapClient.
Does anyone have experience with the free built-in WebServer (for free, because the game will be free)?
Socket Programming and passing JSON / XML / SOAP blocks.
Are there any simple libraries for this type of network connection for PHP / C # that are automatically read from the socket until the message is completed and then sends an event to the game controller?
Just dump for each user and global data to a database or to xml files
A simple solution, but imho is not scalable enough.
What would you suggest?
Thanks in advance.
Supplement for others having a similar question:
After a little research after posting this Question, I came across a .NET System.Net.HttpListener, which is even mono supported, so I will use it now. It seems to have everything you need to embed WebServer on your server.
source share