public DatagramSocket() throws SocketException
public DatagramSocket(int port) throws SocketException
public DatagramSocket(int port, InetAddress laddr) throws SocketException
The first is for client datagram sockets; that is sockets that send datagrams before receiving any.
The second two are for server datagram sockets since they specify the port and optionally the IP address of the socket