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;
	} 
}