-
Communication protocol that sends data packets without establishing a reliable connection, making it faster but less secure than TCP.
-
Used in applications where speed is more important than reliability, such as video streaming or online gaming.
-
Godot:
-
"UDP is a simpler protocol, which only sends packets (and has no concept of a "connection"). No error correction makes it pretty quick (low latency), but packets may be lost along the way or received in the wrong order. Added to that, the MTU (maximum packet size) for UDP is generally low (only a few hundred bytes), so transmitting larger packets means splitting them, reorganizing them and retrying if a part fails.".
-
Closing (
close
)
-
No connection teardown occurs.
-
The local port is released, and kernel buffers are cleared.