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!
Unconnected or connected Datagram for MMORPG ?
Started by andrei94, Jun 16 2012 03:41 AM
2 replies to this topic
Ad:
#2 Moderators - Reputation: 3292
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.
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 };






