Join the forums now, and start posting to receive access to our Scripts Vault!
What is a multicast socket? I am always interested in learning new networking technologies.
Quote from: hiigara on September 20, 2011, 02:27:24 PMWhat is a multicast socket? I am always interested in learning new networking technologies.The socket is just a regular socket server that accepts listeners, and multicast just means that the listeners are grouped, exactly like chatrooms, so that messages can be selectively broadcast.
Quote from: Dasein Fiasco on September 20, 2011, 03:30:28 PMThe socket is just a regular socket server that accepts listeners, and multicast just means that the listeners are grouped, exactly like chatrooms, so that messages can be selectively broadcast.Where is the selective broadcast implemented? Is it in the raw socket system calls, or in node.js code or your code?
The socket is just a regular socket server that accepts listeners, and multicast just means that the listeners are grouped, exactly like chatrooms, so that messages can be selectively broadcast.
Thanks for the technical details, and good luck with your game. I never tried node myself.I do the server side with C++ and implement broadcast in my code.I call any group of sockets a channel.Basically for each new notification I loop over all the sockets which belong to a channel and send the data to it.When I read your post I thought there was something built-in in the socket API that could do this for you.I know you can broadcast the same packet to several IPs in UDP with a single send() call, but probably it doesn't work with TCP sockets.By the way your links are broken. You forgot the double //
Anyway, node is a complete joy and extremely productive to work in. The instrumentation and tooling needs some work, but otherwise from what I've seen nobody should have problems running production apps on node. Javascript may not be your thing, but the evented nature of the language is really a natural style for node apps. I use C++ in my day job - I work for a game company, and since we publish to XBox, PS3, PC, and mobile, portability and performance are king. I strongly dislike the language, though, unless chosen expressly for the control it gives you over memory; by every other metric imaginable I think it's a broken language. Do you use boost::asio? I will say that it's an extremely nice framework, much cleaner and logical than the other 3rd party C++ APIs I've had to work with.