Advertisement

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

Started by February 19, 2014 11:52 PM
1 comment, last by spinningcube 10 years, 9 months ago

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

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 };
Advertisement

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

spinningcube

This topic is closed to new replies.

Advertisement