What is the purpose of the following code snippet?
DatagramSocket socket = new DatagramSocket(); socket.send(packet);
Listens for incoming UDP packets
Sends a UDP packet to a specified address
Sends a TCP packet to a specified address
Opens a new TCP connection