Code example for DatagramSocket

Methods: close, connect, disconnect, getPort, isClosed, isConnected