Winsock
Control
TCP vs UDP
The winsock
control can use either of two protocols.
TCP (Transmission Control Protocol) or UDP (User Datagram Protocol).
Both TCP and UDP are protocols in the IP suite of protocols.
Here we will discuss the major differences between TCP and UDP,
with specific bearing to games.
TCP - Transmission Control Protocol
This is a connection oriented protocol.
What this means is that you must connect to the RemoteHost
before
you can send or receive any data.
An example of this would be trying to receive a webpage.
Your browser must first Connect
to a webserver.
Then it can request the various files it is looking for.
The data is then sent over that connection, while that connection
is live.
UDP - Transmission Control Protocol
This is a connectionless protocol.
You may send or receive data at will, whether there is a connection
or not.