Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


sending the same data to different computers


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
6 replies to this topic

#1 lomateron   Members   -  Reputation: 362

Like
0Likes
Like

Posted 02 November 2013 - 01:36 AM

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.


Sponsor:

#2 SimonForsman   Crossbones+   -  Reputation: 6165

Like
0Likes
Like

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.

I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

#3 Dave Weinstein   Members   -  Reputation: 508

Like
0Likes
Like

Posted 02 November 2013 - 09:33 AM

For all practical purposes, you can't do it.



#4 wodinoneeye   Members   -  Reputation: 856

Like
0Likes
Like

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....


--------------------------------------------Ratings are Opinion, not Fact

#5 hplus0603   Moderators   -  Reputation: 5507

Like
0Likes
Like

Posted 06 November 2013 - 10:38 AM

taking the load off the game mechanics processor


If that is the only think you're trying to offload, it's unlikely to be a win. The bottleneck will be the network cable, not the CPU throughput.
If you build a full gateway system where client connection/book-keeping/etc is done, and gateways connect to game servers as intermediaries, that's more common because it actually gives some gains (one of which is that game simulation servers can be isolated from the Internet.)
enum Bool { True, False, FileNotFound };

#6 wodinoneeye   Members   -  Reputation: 856

Like
0Likes
Like

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.

--------------------------------------------Ratings are Opinion, not Fact

#7 hplus0603   Moderators   -  Reputation: 5507

Like
0Likes
Like

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.


I would be *very* interested in seeing a credible (verifiable) source for this claim.

wasnt it Everquest at one tiem that had hundreds(1000s?) of off-the-shelf PCs running their client layers


From what I've seen described, in original EverQuest, each client connected directly to a game server, and when "zoning" disconnected from that server and re-connected to another server. Each zone was a separate PC/server. As time went on (multi-core servers, etc,) they coalesced multiple zones onto single pieces of hardware, but it was still one process/ip/port per zone.
enum Bool { True, False, FileNotFound };




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.



PARTNERS