Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UDP Packets

Status
Not open for further replies.

fischadler

Programmer
May 31, 2002
258
MT
Is it posible to send them through Javascript.

I have a "Call Of Duty 2" game server with which I can communicate using UDP packets (sending and receiving). This works fine with Visual basic, but I need a way to do it through a web site so I can have a page automatically refresh the list of players.

Thanks!

-Fischadler
 
Can you use the UDP packets to populate a table in a database, or possibly create an xml file? Then it would be as simple as refreshing the page, pulling the current values in the table using ASP or PHP or whatever other server side language you're using. To make it even more Web 2.0, you could use an AJAX function to pull that data w/o even refreshing the page.

I know that didn't really answer your question.... but might give you a possible idea for a solution.

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
Thank Kaht, but that's what I am doing now. The PC used to host the game server is also the web server. Apart from the web service and the game instance, there is a VB program that queries the game console and stores the results in a text file once a minute. Then the site displays the contents of this file.
I was hoping to do away with having to access the hard disk to write a text file, and that is why I am trying to get the clients page to query the game server directly using Javascript.

Unfortunately I am not familiar with Ajax. :(

-Fischadler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top