• Advertisement
Sign in to follow this  

Unconnected or connected Datagram for MMORPG ?

This topic is 2045 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Advertisement
"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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement