Code example for DatagramSocket

Methods: connect

0
		return sslSocket;
	} 
 
	protected DatagramSocket connectUdp() throws SocketException,
			UnknownHostException { 
		udpSocket = new DatagramSocket();
		udpSocket.connect(hostAddress, port);
 
		Globals.logInfo(this, "UDP Socket opened");
 
		return udpSocket;
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE