The main difference being TCP creates a server whereas UDP only creates a socket on which it listens for connections.
This means that the client connection would be lost, if the TCP server goes down, but not in the case of UDP.
Check out the files for connection details.