what protocol do online game use
That's like asking what kind of metal are cars made from?merc wrote:QUOTE (merc @ Jul 30 2010, 05:34 AM) Does anyone know what protocol do online game uses? like TCP/UDP and ports?
You need to be specific - what kind of metal is [specific part of car] made from.
Also you can build protocols ontop of protocols.
In an attempt to answer your question I'll say UDP, because the client want the latest message as soon as possible, and doesn't care about lost messages - TCP would spend a long time resending old messages to make sure all messages reach you, and that all messages are in order. But then there will be a protocol built ontop of UDP defining what is in those packets and where the pieces of data are, and how to respond to the packet.
The above answer is more theoretically correct than practically correct.
As for ports the game developer has free choice of ports to use (though you choose to avoid ones used by other common programs).

