Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Unconnected or connected Datagram for MMORPG ?

4: Adsense

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   

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!

#2 hplus0603   Moderators   

11115
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   

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.