Jump to content

  • Log In with Google      Sign In   
  • Create Account


Unconnected or connected Datagram for MMORPG ?


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 andrei94   Members   -  Reputation: 134

Like
0Likes
Like

Posted 16 June 2012 - 03:41 AM

Hello everyone!

Im kinda new to network programming ... i've read a lot of tutorials and now i have doubts about : what is the fastest way on UDP port ...and best for MMORPG or games with kinda many players... connected datagrams or unconected ? what's best send()/sendto() in speed term and usability ?

Thanks!

Sponsor:

#2 hplus0603   Moderators   -  Reputation: 5108

Like
1Likes
Like

Posted 16 June 2012 - 09:49 AM

"connected" UDP sockets simply means that you don't have to specify the destination address when sending the UDP datagram -- you can use send() instead of sendto(). There is no speed difference.
On a server, or any other system that talks to more than one other system, "connected" UDP sockets just get in the way. I never end up using them.
There is no measurable performance difference.
enum Bool { True, False, FileNotFound };

#3 andrei94   Members   -  Reputation: 134

Like
0Likes
Like

Posted 17 June 2012 - 04:25 AM

ty a lot !




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