Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

UDP HTML5 JavaScript no plug-in approach? Browser JavaScript application to C++ Server.

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 spinningcube   Members   

90
Like
0Likes
Like

Posted 19 February 2014 - 05:52 PM

Hello,

 

Been checking out some standards around the web for instant deploy of web applications (the user needs not to install any plugin, but needs an up to date browser). Totally dig the Javascript and WebGL combo as it is to me the way to deploy applications.

 

 

I am interested in a way to communicate via UDP in the browser towards a server.

 

WebSockets? Seems only TCP

 

WebRTC? Seems only possible browser to browser but no browser to C++ server.

 

Node.js? It's a plugin?

 

Any ideas?

 

spinningcube


Edited by jbadams, 13 April 2014 - 01:38 AM.
Restored post contents from history.


#2 hplus0603   Moderators   

11115
Like
1Likes
Like

Posted 19 February 2014 - 08:50 PM

UDP is not well supported in current browsers.

Given that WebRTC can do "browser to browser" then it can also do "browser to server;" you "just" have to build the server side to look browser-like on the network.
You could, for example, us the WebRTC C++ API in your server.
enum Bool { True, False, FileNotFound };

#3 spinningcube   Members   

90
Like
0Likes
Like

Posted 20 February 2014 - 04:07 PM

Yup found some example already. Nice native C++ api.

spinningcube


Edited by jbadams, 13 April 2014 - 01:39 AM.
Restored post contents from history.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.