TCP is a streaming protocol between a server and clients. The protocol is reliable and requires a separate state for each server <> client thread. The connection protocol initiated with listen / accept sets this connection status to server <>. UDP is a connectionless protocol, an unreliable datagram (message), so there is no need to listen to new connections - datagrams can be entered in any order from any source.
source share