I would like to know what tutorials are out there that explain how to send the same data to different computers( only suing one send() ) with TCP sockets on ipv 4 and 6
Edited by lomateron, 02 November 2013 - 01:39 AM.
Jump to content
Posted 02 November 2013 - 03:06 AM
You can't do multicast or broadcast via TCP, it only works with UDP on Local networks (LANs). You can't do multicast or broadcasts on the internet at all unless you are in full control of every single router between the sender and all recievers.
Edited by SimonForsman, 02 November 2013 - 03:09 AM.
Posted 05 November 2013 - 11:08 PM
The only thing I can think of that might be close is to have the logic processor (computer/core0 send a single network message to a dedicated communication processor which then marshals data to be sent to some number of registered clients taking the load off the game mechanics processor.
There is extra delay but this kind of thing is frequently done on MMORPGs where Client Nodes do alot of the client operations /bookkeeping/connection maintenance/prevalidation/etc....
Posted 06 November 2013 - 10:38 AM
taking the load off the game mechanics processor
Posted 08 November 2013 - 04:13 AM
Of course you could have that one then 'tree out' into additional pipes ( every Nth msg goes to one of several load leveling network processors each with its own outboud pipe)
But I was thinking of various keepalives, sorting, message grouping (fewer teenie packets) and subsetting operations the network node might be able to offload.
Some of the MMORPG Ive seen recently start to choke because they arent just sending position/action update info, but also more dynamic specific object info as the player (or various objects) moves. Future game will probably have an explosion of the amount of data sent, but as you mention 'big' games already are clusters of machines (and have been since the first mmorpgs -- wasnt it Everquest at one tiem that had hundreds(1000s?) of off-the-shelf PCs running their client layers??)
As for the original single send question, you can 'send' via a single socket internal shunt from one core's process to another and THAT process can do the multiple sends (subscription list out to clients).
Edited by wodinoneeye, 08 November 2013 - 04:20 AM.
Posted 08 November 2013 - 01:15 PM
Some of the MMORPG Ive seen recently start to choke because they arent just sending position/action update info, but also more dynamic specific object info as the player (or various objects) moves.
wasnt it Everquest at one tiem that had hundreds(1000s?) of off-the-shelf PCs running their client layers