Im creating a little MMOFPS. Can anybody tell me what connction
type I must use?
UPD,TCP or a network library or something...
ThaNxx.
UDP is slightly faster than TCP, but TCP loses less packets and has less corruption.
Specifically, TCP doesn't lose any packets, and the packets are ordered. With UDP, packets may not arrive in the order they were sent and they may never arrive at all. So you need to write your own system to handle lost or unordered packets if you plan to use UDP.
The current wisdom seems to be to use TCP for important data ( like selling an item ) and then UDP for less vital things ( like a regular position update. )
Never use TCP for that. The server/client will wait for the package to be completed. In case of Blitz this means a blocking call. So your game will freeze until the package is complete. :D
Regards - Xaron